Table of Contents
You run a campaign, drive traffic to your landing page, and visitors fill out your contact form. But the lead never shows up in Salesforce. Your sales team has no idea someone just raised their hand.

That's the problem a Salesforce web-to-lead form is built to solve. It generates an HTML form you can embed on your website, and every submission creates a Lead record in your CRM automatically.
The setup itself is straightforward. What catches most teams off guard is everything around it. There's a 500 leads/day cap that Salesforce doesn't warn you about upfront. Spam submissions can flood your lead queue within days. And auto-response emails, the ones that should go out the moment someone fills out your form, won't send unless you separately configure the rules.
We'll walk through all of it: enabling the feature, building and embedding the form, setting up auto-responses, and working around the limits before they cost you leads.
How to Enable Web-to-Lead in Salesforce
Go to Setup, type "Web-to-Lead" in the Quick Find box, click Web-to-Lead Settings, and check the Web-to-Lead Enabled box. Salesforce keeps this feature off by default, so nothing works until you do this.
Once the checkbox is on, configure these settings before you save:
- Default Lead Owner: Pick the user or queue that receives every new lead when no assignment rule matches. Skip this, and unmatched leads will have no owner. Your team won't see them.
- Default Response Template: Select an email template if you want Salesforce to send an auto-reply on form submission. You can set up more specific rules later with auto-response rules.
- reCAPTCHA: Turn this on to add spam protection to your generated form HTML. Without it, bots can submit your form and fill your lead queue with junk data within days.
- Click Save.
In Salesforce Classic, the path is Setup > Customize > Leads > Web-to-Lead. The settings are identical.
Enabling web-to-lead does not create a form. It activates the feature so Salesforce can accept incoming submissions. Next, you build the actual form.
How to Create a Salesforce Web-to-Lead Form (Step-by-Step)
Once web-to-lead is enabled, go to Setup, type "Web-to-Lead" in Quick Find, and click Create Web-to-Lead Form. Salesforce will open a form builder where you select fields, set a return URL, and generate the HTML code.
Step 1: Select your form fields.
Salesforce shows a list of standard Lead fields on the left. Move the fields you want into the Selected Fields column. Common choices include First Name, Last Name, Email, Company, Phone, and Lead Source.
You can also add custom fields here. If you created a custom field on the Lead object (like "Product Interest" or "Company Size"), it will appear in the available fields list. This is how you capture the data your sales team actually needs for qualification.
When you capture email addresses through any form, make sure your org is set up tohandle email opt-out preferences correctly. This matters the moment you start sending follow-ups to these leads.
Step 2: Set the return URL.
This is the page visitors see after submitting the form. Enter the full URL of your thank-you page, including "https://". If you leave this blank, visitors land on a plain Salesforce confirmation page with no branding and no way to navigate back to your site.
Most teams point this to a dedicated page on their own website that confirms the submission and tells the visitor what happens next. Getting this right matters because a confusing post-submit experience leads to duplicate submissions and higher bounce rates.
Step 3: Enable or disable reCAPTCHA.
If you turned on reCAPTCHA in the web-to-lead settings earlier, Salesforce will include the reCAPTCHA v2 checkbox code in the generated HTML. Visitors must complete the checkbox before submitting.
For most teams, keeping reCAPTCHA on is worth it. Without it, bot submissions eat into your 500 leads/day cap and make it harder to identify real prospects in your Lead queue. If you use your own spam filtering (honeypot fields or a third-party form tool), you can skip it here.
Step 4: Click Generate.
Salesforce produces a block of HTML code. This code contains three key pieces:
- A form action URL that points to Salesforce's lead capture endpoint.
- Your organization ID (the "oid" field), which tells Salesforce which org should receive the lead.
- Hidden and visible input fields are mapped to your selected Lead fields.
Copy this entire HTML block. Salesforce does not save it for you. If you close this page without copying, you will need to generate the form again.
Before you move on, make sure you have anemail template ready in Salesforce for your auto-response. You will need it in the next section.
Step 5: Embed the HTML on your website.
Paste the HTML into your website's source code, landing page builder, or CMS. If you're using WordPress, add it inside a Custom HTML block. For Webflow or Unbounce, paste it into an embed component.
The generated form has no CSS. You will need to style the fonts, colors, spacing, and button design yourself to match your site. Without custom styling, the form will look out of place on any branded page.
Step 6: Test the form.
Submit a test entry using a recognizable name and email address. Go to Salesforce, open the Leads tab, and confirm the record appears with the correct field values.
Check three things specifically: the return URL redirected to the right page, the lead owner matches your default or assignment rule, and the Lead Source field is populated correctly. If the lead doesn't appear within a few minutes, verify that web-to-lead is enabled and that your HTML contains the correct organization ID.
How to Set Up Auto-Response Rules for Web-to-Lead
Auto-response rules send an automatic email to a lead the moment they submit your web-to-lead form. If you skip this setup, leads hear nothing after submitting, and your response time starts at zero with no acknowledgment.
Steps to create an auto-response rule:
- Go to Setup and type "Auto-Response Rules" in the Quick Find box.
- Click Lead Auto-Response Rules.
- Click New, name your rule, and check Active. Salesforce only allows one active lead auto-response rule at a time, so if you already have one, you will need to add a new rule entry to it instead.
- Save the rule, then click the rule name to open it.
- Click New under Rule Entry to create your first condition.
- Set the criteria that determine which leads receive the response. You can filter by Lead Source, campaign, or any other field on the Lead object to control which submissions trigger which email.
- Select the email template you want Salesforce to send. This is the template you prepared in the previous step.
- Set the sender name and email address that appear in the lead's inbox. Use an address your team actually monitors. If a lead replies to the auto-response and it goes to an unmonitored inbox, you've lost the fastest follow-up window you'll get.
- Click Save.
One detail most guides miss: auto-response rules only fire on leads created through specific channels like web-to-lead and lead imports. If a rep creates a lead manually from the Salesforce UI, the auto-response rule will not trigger. This catches teams off guard when they test by creating a lead record directly instead of submitting the actual form.
What auto-response rules cannot do:
They send one email per lead, one time, based on the criteria you set. You cannot add a second follow-up, insert delays, or build any kind of sequence. You also cannot vary the timing or content based on how the lead engages after that first message.
For teams running simple lead capture at low volume, a single confirmation email works. For teams that needfollow-up sequences or drip campaigns triggered by form submissions, you need multi-step automation. MassMailer lets you build those sequences inside Salesforce, triggered directly by new web-to-lead records, so the follow-up starts without exporting data or connecting an external tool.
Web-to-Lead Limits, Common Issues, and When to Consider Alternatives
Salesforce web-to-lead has hard limits that can cost you leads without warning. If you are scaling any Salesforce lead capture form beyond basic use, you need to know where the walls are.
The 500 leads/day cap
Salesforce allows a maximum of 500 web-to-lead submissions per 24-hour period. When you exceed this, Salesforce queues the overflow. But queued leads are not guaranteed to be created, and Salesforce sends no notification when submissions are dropped. No configuration change or edition upgrade removes this limit.
If your campaigns consistently generate more than 500 form submissions per day, you have outgrown what native web-to-lead can reliably handle.
Validation rules do not fire
If you have validation rules on the Lead object that require certain fields or enforce formatting, Salesforce ignores them for web-to-lead records. The lead gets created even if it violates your rules. You end up with incomplete or incorrectly formatted records that would have been blocked if a rep entered them manually.
The fix is handling validation on the front end. Add required attributes and input pattern checks in your website's HTML form code so bad data gets caught before it reaches Salesforce.
Spam at scale
ReCAPTCHA stops casual bot traffic, but it does not stop all of it. Sophisticated bots bypass reCAPTCHA v2, and if your form URL is publicly accessible, automated scripts will find it. The real problem is not just junk records in your Lead queue. Every spam submission counts toward your 500/day cap, reducing the space available for real leads.
Layer your spam defense. Use reCAPTCHA as the first filter, add a honeypot field (a hidden field only bots fill out) as a second filter, and set up a scheduled report in Salesforce to flag leads with suspicious patterns like blank company names, nonsense entries, or disposable email domains.
Common issues when leads don't appear
If you submit the form and no lead shows up in Salesforce, work through this checklist:
- Confirm web-to-lead is enabled in Setup.
- Verify the organization ID ("oid" value) in your HTML matches your Salesforce org.
- Check that the form action URL points to the correct Salesforce endpoint.
- Look for the lead under the default lead owner you configured. If you didn't set one, the lead may exist but sit unassigned and invisible to most users.
- Check if you hit the 500/day cap. New submissions after the cap won't appear immediately.
- If the lead appears but every field is blank, the field names in your HTML do not match the API field names in Salesforce. Open the generated HTML and compare each input name against the field API names in Object Manager.
When native web-to-lead is enough
If you capture fewer than 500 leads per day, need standard fields only, and a single confirmation email covers your follow-up, native web-to-lead does the job. No reason to add complexity.
When you need more
If your campaigns regularly push past the 500/day limit, or you need multi-step follow-up emails triggered by lead creation, or you need branded forms with conditional logic, native web-to-lead won't cover it.
MassMailer removes the daily sending cap and lets you build post-capture email workflows directly inside Salesforce, triggered by new web-to-lead records. You can see how it compares to otherSalesforce AppExchange email apps if you're evaluating options.
Conclusion
You now have a working Salesforce web-to-lead form that captures leads, creates records automatically, and sends a confirmation email on submission.
The gaps show up when volume grows. The 500/day cap, single-email auto-responses, and unstyled HTML forms are platform-level constraints you cannot configure away.
MassMailer picks up where native web-to-lead stops. It handles high-volume email sends, multi-step follow-up sequences, and real-time tracking inside Salesforce, with no external platform or sync layer.
If your team is outgrowing native limits or losing leads to slow follow-up,book a demo with MassMailer to see how it fits your Salesforce setup.
Frequently Asked Questions
1. How many leads can Salesforce web-to-lead capture per day?
2. Does web-to-lead create duplicate leads?
3. Can I add hidden fields to a Salesforce web-to-lead form?
4. Can web-to-lead assign leads to different users automatically?
5. Does web-to-lead support file uploads?
6. Can I track which campaign generated a web-to-lead submission?
Start Your Free Trial Today
Experience MassMailer the easiest way to send personalized emails from Salesforce.
MassMailer Resources
MassMailer Glossary