Tutorial: How to Create a Salesforce Web-to-Lead Form
December 2nd, 2009 by Hillary Elmore
We realize that sometimes help documentation isn’t quite enough, and you just want someone to walk you through a process once or twice. We can’t do exactly that, but hopefully this tutorial will be able to bridge the gap for you.
A web-to-Lead forms is an essential component of marketing and sales automation. Its purpose is to capture data submitted by website visitors, such as contact information and product interest, and store it as a “Lead” record in a CRM product, in this case Salesforce.com.
Before you start this tutorial, you’ll need a FormAssembly account (if you don’t have one yet, you can sign up for our Professional Plan here) and a Salesforce.com Professional Edition (or above) account.
To simplify this tutorial, we’ll use this Salesforce Web-to-Lead template.
Create your form.
1. Open the Sample Contact Form in the Form Builder.
If you would like to customize the form, do so now. If you don’t need to customize it, move on to Step Two.
2. Click the “Save” button and exit the Form Builder.
If you need to change the display options (save & resume, preview response, SSL, or CAPTCHA) or notifications options (thank you page redirects, auto-responders, and email notification), go ahead and do that now. You can also do this later if you find your needs for your form change.
3. Open the Connector tab.
Click the “configure” link next to the Salesforce connector.

Salesforce Connector Setup
Enable the Salesforce Connector
To enable the connector, change the “run mode” option from “disabled” to “interactive”.
Enter Salesforce credentials
Enter your Salesforce username. In the password input, enter your password and your security token. You can obtain a new security token by selecting “Setup” within Salesforce, then “Reset your security token.” Once you’ve entered this information, click “Check.”
Map fields
Once your Salesforce credentials have been accepted, you’re ready to start mapping the fields in your form to fields in Salesforce. In the “Source Type” column, select webform. The “Source” column will be populated with a dropdown menu of all the fields in the form. In the “Salesforce Object” column, select the Salesforce object you want to create or update with the connector. A form can edit or update more than one object. In the “Salesforce Field” menu, select the field that corresponds to the form field in “Source.”
Click “Map a new field” as necessary to map all the web form fields to Salesforce.
Save your connector
Click the save button and you’re done setting up your Salesforce connector for this form.
Start using your form
Once you’ve finished setting up the connector, you’re ready to test your form and get it out to your customers. To do this, go to the “Publish” tab, and click the link to go to your form. Fill out the form and click submit. Within a few seconds you should see the new data in your Salesforce account. Once you’ve confirmed that the form is properly connected to your Salesforce account, your form is ready to be used.
Web-to-lead is one of the most common uses of FormAssembly’s Salesforce integration, but you can also use FormAssembly to update or create almost any type of record in Salesforce. Our documentation provides ideas for other ways to use FormAssembly and Salesforce, as well as providing help for advanced procedures.



Get email updates on FormAssembly


March 11th, 2010 at 3:00 pm
[...] also written a tutorial on creating a Salesforce web-to-lead form. Our Salesforce documentation is another good tool for reference. If you have specific Salesforce [...]
May 25th, 2010 at 9:27 pm
[...] Tutorial: How to Create a Salesforce Web-to-Lead Form (more in-depth) [...]
March 16th, 2011 at 4:27 pm
thanks for post..
but i need a working asp.net example for salesforce.
March 16th, 2011 at 4:33 pm
DNN Developer: FormAssembly generates a HTML form to place on your site. Everything else is taken care of for you. The server-side technology is not relevant. In a asp.net page, simply copy&paste your HTML and you’re done.
April 30th, 2012 at 3:21 pm
How do we connected the record ID and OID with your platform to connect into salesforce leads?
May 1st, 2012 at 1:48 pm
Garlock: Our Salesforce connectors allow you to both lookup records from your Salesforce account using your record id ( or any SOQL query ) and set editable fields from within the connector.
So, if you were creating a Salesforce Lead and wanted every Lead record to have a certain owner id, you could do it with one line:
Create Lead
Set Lead Owner Id —-> [get value from formula] ( 000xxx0000xx )
where 000xxx0000xx is your Salesforce record id for the owner. This is all outlined in more detail in our documentation on Salesforce object creation / updating / lookup:
http://www3.formassembly.com/blog/support-documentation/connectors-documentation/salesforce-documentation/salesforce-connector/using-the-version-2-salesforce-connector/
If you have further questions, just email helpdesk@formassembly.com and we’d be happy to help you.
Drew