You need to sign in to do that
Don't have an account?
![realtimetasks1.3941822547955107E12 realtimetasks1.3941822547955107E12](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
Trigger on Contact Object
writing a trigger that will automatically create a new lead in SF off of a contact profile when a contact's "clicked" field is populated, and making sure that the leads "lead source" field is populated with the name of the email campaign
Please go through the sample code in the link below:
http://salesforce.stackexchange.com/questions/9708/apex-example-of-creating-case-record-when-field-on-account-equals-xxx
The requirement discussed is very similar to your requirement so you can tweak the code to fit your need..