function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Kiran PandiyanKiran Pandiyan 

linking lead generation from web to campaign

How can we get campaigns from web and generate lead from those campaigns ?
TintuBabuTintuBabu
Hi kiran,

Creating the Web-to-lead and attaching the campaign:
Step1:
Go to Setup | App Setup | Customize | Leads | Web-to-Lead.
Step 2:
Select the fields you would like to capture on your form.
Make sure to include “Campaign and “Campaign Member Status”
Step 3:
Click on Generate button to get the HTML code of the form. The HTML will show you the list of your available campaigns and their IDs. Select the one you want out of that list.
Step 4:
Add the following code to the HTML form
<input type="hidden" id="Campaign_ID" name="Campaign_ID" value="70180000000IQBW" />
<input type=”HIDDEN” name=”member_status” value=”responded”>
Adding this code to the HTML form will ensure that every lead that fills out the form will be attached to the campaign you assigned and the member status default you designated.