Salesforce Dictionary - Free Salesforce GlossarySalesforce Dictionary
Full Web-to-Lead entry
How-to guide

How to set up Web-to-Lead in Salesforce

Web-to-Lead generates an HTML form you embed on your marketing site. Submissions create Lead records in Salesforce, optionally fire the Lead Assignment Rule, and optionally trigger an Auto-Response Rule to email the prospect. It's the simplest inbound capture path Salesforce ships.

By Dipojjal Chakrabarti · Editor, Salesforce DictionaryLast updated Apr 20, 2026

Web-to-Lead generates an HTML form you embed on your marketing site. Submissions create Lead records in Salesforce, optionally fire the Lead Assignment Rule, and optionally trigger an Auto-Response Rule to email the prospect. It's the simplest inbound capture path Salesforce ships.

  1. Open Setup → Web-to-Lead

    Setup → Quick Find: Web-to-Lead → Web-to-Lead.

  2. Tick Web-to-Lead Enabled and pick Default Lead Creator

    Default Creator owns Leads if no assignment rule fires. Pick a service-account user, not a real human.

  3. Set the Default Response Template (optional)

    The Email Template auto-sent to prospects on submission. Lives in Setup → Email Templates.

  4. Click Create Web-to-Lead Form

    Top of the page. The wizard generates the HTML.

  5. Pick fields to include

    Standard Lead fields + custom fields. Skip required-on-the-platform fields you can't ask the user (e.g. you'd never ask for Lead Status).

  6. Set Return URL

    Where the user is redirected after submit. Your thank-you page.

  7. Generate and embed the HTML

    Copy the generated HTML, paste into your marketing site. The form posts to Salesforce — keep the hidden orgid field intact.

Key options
Default Lead Creatorremember

Owner of inbound Leads if assignment rules don't fire. Service-account user is the convention.

Default Response Templateremember

Auto-emailed to prospects (uses Auto-Response Rules for per-criteria templates).

reCAPTCHA enabledremember

Require reCAPTCHA before submit. Highly recommended — without it, bots flood the form.

Hidden orgid fieldremember

Required on the form. Identifies your Salesforce org. Don't strip from the generated HTML.

Return URLremember

Where the form redirects after submit.

Gotchas
  • Web-to-Lead is rate-limited at 500 leads per day per org. Higher-volume forms need a paid integration (Marketing Cloud, Pardot, or a custom API integration with a token).
  • Validation rules fire on Web-to-Lead submissions. A required-by-validation field that the form doesn't ask for blocks the lead silently — submissions just disappear into the Daily Lead Submission Log.
  • Without reCAPTCHA, bots submit hundreds of garbage Leads per day. Always enable reCAPTCHA for public forms.

See the full Web-to-Lead entry

Web-to-Lead includes the definition, worked example, deep dive, related terms, and a quiz.