---
schema_version: "1"
id: d58d41b1610965026a0a722bd78834d4555af5db4d3cedef917417b8b872c29e
title: Generate Leads from Your Website with Web-to-Lead
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/sales/264-0-0/setting_up_web-to-lead.md
canonical_url: https://help.salesforce.com/s/articleView?id=sales.setting_up_web-to-lead.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: d084bcaa94bc66f0ab807b3f73d5ee3fff5333f99895cecca31826c33c260fc4
description: Generate up to 500 leads per day by capturing data from prospects who provide contact information. You can also redirect prospects to other web pages that are critical to campaign success.
products:
  - Sales Cloud
release: "264"
---
# Generate Leads from Your Website with Web-to-Lead

Generate up to 500 leads per day by capturing data from prospects who provide contact information. You can also redirect prospects to other web pages that are critical to campaign success.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Salesforce Classic and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Essentials</strong>, <strong>Group</strong>, <strong>Professional</strong>, <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d18654e82">User Permissions
              Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d18654e82 ">To set up Web-to-Lead:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18654e82 ">Customize Application</td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d18654e82 ">To act as the default lead creator for Web-to-Lead:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d18654e82 ">
              <p>Modify All Data</p>
              <p>AND</p>
              <p>Send Email</p>
              <p>AND</p>
              <p style="margin-bottom:0;">Access
                Activities</p>
            </td>

          </tr>
        </tbody>
      </table>

When generating leads with Web-to-Lead, reCAPTCHA protects your data by confirming that only your sales reps can generate leads. reCAPTCHA, a Google service, is on by default to prevent spambots from polluting your lead data with fake records.

![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-sales-sales_core-264-0-0-production-enus/3c339c40-ca6c-49ba-9c6e-684be7a55f80/images/icon_important.png)

Important Make sure that reCAPTCHA is supported in your region.

1. From Setup, in the Quick Find box, enter Web-to-Lead, and then select **Web-to-Lead**.
2. To turn on or change Web-to-Lead settings, click **Edit**.
3. Optional. To skip reCAPTCHA verification, deselect **Require reCAPTCHA Verification**.
4. Select the default lead creator.
    
    Select a user who has the Modify All Data, Send Email, and Access Activities permissions, granted through a permission set or a user profile. Don’t use a combination of a permission set and a user profile to grant these permissions to this user.
5. To automate email replies to prospects, specify a Default Response Template.
    
    Set up response rules to use a specific email template based on the information that a prospect provides. Salesforce uses the default template when no rules apply. Mark the template Available for Use.
6. Click **Save**.
7. Create a form that captures prospect details on your website, and select the fields to include.
    1. Click **Create Web-to-Lead Form**.
    2. Select **Campaign**.
    3. If your company uses multiple currencies and your form includes amount fields, add the **Lead Currency** field. Without a lead currency, Salesforce captures all amounts in the corporate currency.
    4. To capture interest in several products, add a custom multi-select picklist.
    5. If you use lead record types and want users to select a record type, select **Lead Record Type**.
8. If you use the Translation Workbench or have customized tab names, select the language for the form labels.
9. Enter the URL to direct users to after they submit their information, and click **Generate**. For example, use your company’s home page as a thank-you page.
10. To add a reCAPTCHA widget to the lead submission form, select **Include reCAPTCHA in HTML** and specify the reCAPTCHA API Key Pair by using the lookup.
    
    Make sure that the HTML on your website includes the reCAPTCHA validation code. If you didn’t enable reCAPTCHA verification, your forms continue to capture leads.
    
    To allow traffic if the Google reCAPTCHA servers aren’t available, select **Enable server fallback**.
11. Copy the generated HTML code and provide it to your company’s webmaster to incorporate it into your website.
12. Click **Finished**.

To test the Web-to-Lead form, in your code, remove the <!-- and \--> from the beginning and end of these lines.

```html
<!-- <input type="hidden" name="debug" value=1>               -->
<!-- <input type="hidden" name="debugEmail"                 -->
<!-- value="<<add emailId here>>">                    -->
```

Replace <<add emailId here>> with your email address. When you submit the form, Salesforce sends an email with debugging information to your email address.

For web leads generated as part of a campaign, Salesforce sets the member status of the new lead to the Member Status value that you specify in the form. If you don’t include the Member Status field in the form, Salesforce sets the member status to the value that you specify as the default. If you include the Campaign ID field on your form, Salesforce inserts the lead as a campaign member. To avoid duplicate campaign members, don’t create a trigger or process that inserts them from the generated leads.

#### See Also

- [Guidelines for Setting Up Web-to-Lead](https://help.salesforce.com/s/articleView?id=sales.customize_leadpreparation.htm&release=264.0.0&type=5 "Get Salesforce ready to gather information from your company’s website and automatically generate up to 500 new leads a day.")
- [Validation Rules](https://help.salesforce.com/s/articleView?id=platform.fields_about_field_validation.htm&type=5&language=en_US)
- [Define Validation Rules](https://help.salesforce.com/s/articleView?id=platform.fields_defining_field_validation_rules.htm&type=5&language=en_US)
- [Capture Leads in Essentials with Web to Lead](https://help.salesforce.com/s/articleView?id=000392651&type=1&language=en_US)