Default values and tracking on Web to Lead forms

Written by ShamrockCRM on July 18, 2009 – 8:36 pm -

If you have ever wanted to set default values for certain fields when someone is filling out a Salesforce.com Web2Lead form on your website, you absolutely can.  For example, let’s imagine that you have 5 product pages on your website and you have a contact form on each page.  You could set a field called “Originating Web Form” to the value Product 1 or Product XYZ as seen below.  The user filling out this form would never see this field that is filled out behind the scenes, because it is a hidden field.

This allows you to set fields in Salesforce that might trigger different types of workflow rules or could be used for specific marketing tracking.  This is a great, easy way to prefill in data or track certain behavior.

The line below allows you to specify a hidden value that the user does not see.  This will default a field in Salesforce.com called “Originating Web Form” with the value “Product XYZ Page.”  This will let you know that the user filled in the form on this specific product page.

salesforce.com development web 2 lead

Bookmark and Share

Related posts:

  1. Sidebar Javascript Manipulation of Edit Pages
  2. Salesforce.com JavaScript to Override Buttons
  3. Salesforce Changes for Delegated Authentication
  4. Salesforce.com Lead Activity History Report
  5. Lead Management – Sales Lead Definitions


If you enjoyed this, make sure to subscribe to my RSS Feed



2 Responses to “Default values and tracking on Web to Lead forms”

  1. By Sierra on Aug 27, 2009 | Reply

    Where do you find the value for the field name=”00N000000077777″?

  2. By ShamrockCRM on Aug 27, 2009 | Reply

    If you are asking, how did I find the value “00N000000077777,” I used the default Web 2 Lead wizard for this field and it generated it for me.

Post a Comment