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.
edit settings

Salesforce Connector Setup

Enable the Salesforce Connector
To enable the connector, change the “run mode” option from “disabled” to “interactive”.

interactivemode

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.

mapping

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.

4 Responses to “Tutorial: How to Create a Salesforce Web-to-Lead Form”

  1. » Blog Archive » Tutorial: Quickly create a form to populate any Salesforce object Create Web Forms – FormAssembly.com Says:

    [...] 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 [...]

  2. » Blog Archive » How to use FormAssembly with Salesforce for Google AdWords Create Web Forms – FormAssembly.com Says:

    [...] Tutorial: How to Create a Salesforce Web-to-Lead Form (more in-depth) [...]

  3. DNN Developer Says:

    thanks for post..
    but i need a working asp.net example for salesforce.

  4. Cedric Savarese Says:

    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.

  5. Garlock Says:

    How do we connected the record ID and OID with your platform to connect into salesforce leads?

  6. Drew Says:

    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

Leave a Reply