Best Practices in Website Integration: Passing Hidden Values Print E-mail
Monday, 18 August 2008 17:15

For those of you who do not have your website forms integrated in to Salesforce.com check out Kraig’s previous post on how to enable Web-to-Lead (W2L). In addition to setting up W2L Kraig describes the process for passing a campaign ID in the background so you can track your leads by marketing campaign.

Passing hidden values can be applied to any standard or custom field on the lead record, not just the campaign and it’s fairly easy to do.  Along side the rest of the hidden values you are passing simply add another line that looks like this:

<input type=hidden name="insert field name here" value="insert value you want to populate">

W2l_form


Not sure what your field name is? Under customize, click in to leads, fields, and in to the specific field you want to pass.

Field_name

Now just copy this field name in to the code, add the value you want to pass (make sure it matches your existing picklist values), generate the web code and send it over to your webmaster to post on your site!