How to Create a Salesforce Web-to-Lead Form
Create your Web Form
For the purpose of this tutorial, we are going to use a template from the Form Library.
Make sure you are logged on and have subscribed to the Form Assembly Professional plan *.
If you are familiar with the Form Builder, you can customize the form now, otherwise simply move on to step 2.

On this page, you can review the different setup options or keep the defaults for now. You can always change them later.

Salesforce Connector Setup
You first need to select which type of access you will want us to use to insert leads in your Salesforce application.
API setup
This applies if you have selected the ‘API’ connector type.
Step 5. Enter a valid Salesforce username and password.You can use one of your existing Salesforce account, but it is preferable that you create a specific ‘API’ account and restrict its access rights to the lead object only (for instructions on how to do that, please refer to the Salesforce documentation).
Step 6. Press the ‘continue’ button. If the connection is successful you will be presented with the field mapping section.Web-To-Lead setup
This applies if you have selected the ‘web-to-lead’ connector type.
Step 5a. Go to your Salesforce account and generate the default web-to-lead form.Step 5b. Copy the HTML and simply paste it in the box provided.Step 6. Press ‘continue’.You do not need to do anything else with this HTML. The Form Assembly will automatically extract the information needed.
Field Mapping
Now your form is ready and the connection with Salesforce is working. You need to specify which field of your form corresponds to which field in Salesforce.

Here is more information on how to map your form fields.
How to Handle Picklists
Some Salesforce fields have a predefined list of values, or picklist. For instance, the picklist for Salutation contains ‘Mr.’, ‘Ms.’, ‘Mrs.’, ‘Dr.’, etc… If you match a multiple-choice question with a picklist, you can specify what choice corresponds to what item in the picklist. Most of the time, the labels will be identical, but that is not necessary.
How to Merge Fields
You can merge several of your form fields in one Salesforce field. For instance, if you had three fields for the phone number (US format (555) 555-5555), you would map all of them to the ‘phone’ field in Salesforce.
How to Use Conditional Sections
The form used in this tutorial contains a ‘other / please specify’ combo (in the product interest question). This allows the respondent to provide a free text answer when none of the predefined choices is relevant.
To map those fields correctly, first map the multiple-choice question to the Salesforce picklist (here product interest). Map each available choice, except the ‘other’, which remains ‘not exported’. Then move on to the next question - ‘please specify’ - and map it to the same Salesforce field (’product interest’).

That’s it! Feel free to post your comments below.
Technorati Tags: Salesforce, Web-to-Lead, Web Forms
August 17th, 2006 at 9:08 pm
Web Form Tools and Links
No matter if you are creating the next big Web 2.0 application or you are just setting up a personal Web site, putting in a form or two could never hurt. These make contacting you (for one reason or another)…
September 12th, 2006 at 5:47 am
[…] For more details on setting up a Salesforce connected form, see their blog post on the subject. […]
January 18th, 2007 at 6:43 pm
I have a problem of adding a custom page after the form has been filled out, it is going to a ugly white page with some settings from salesforce, can i have it go to a custom page? If yes please let me know how.
January 22nd, 2007 at 4:05 am
Anton, if you still have this problem, can you email support at formassembly dot com, with the link to your form?
To redirect to a custom page, you only need to set the “redirect to: ” field in the form “display & processing properties” page.
Thank you.
March 8th, 2007 at 5:23 am
What if you want to check salesforce to see if the person filling out the form already exists?
- Pat
April 11th, 2007 at 9:06 pm
Pat,
SalesForce has datacleansing apps like Ring Lead and Active Prime that prevent duplicates by matching and updating existing Contacts or Leads from online contact forms or lists imported. These items are available in the AppExchange.
August 1st, 2007 at 2:25 am
Will this also work with the Salesforce Enterprise Edition (nonprofit version)?
Thank you!
Batya
batyashevinsky at bircas dot org
August 1st, 2007 at 2:30 pm
Hi Batya,
Yes it does work with the enterprise edition.
March 14th, 2008 at 6:18 am
Hi, this might sounds stupid… sorry im new to SF… how can i create a lead form that only shows leads from website?