On this page
What this issue is
Web-to-Lead is a Salesforce feature that gives you an HTML form. The form posts to https://webto.salesforce.com/servlet/servlet.WebToLead with a hidden oid field, which is the ID of your Salesforce org (your Salesforce account). Salesforce uses it to decide where the lead goes.
- Visitor submits formForm posts to the WebToLead servlet
- Salesforce receives itWrong oid, feature off or daily limit hit
- Lead createdNo record, no assignment, no alert to sales
- Sales follow-upNobody knows the lead existed
The visitor sees success, but Salesforce never creates the lead.
Why it costs you leads or sales
Example: 800 form submissions in a day, but only 500 become Salesforce leads when the cap is reached.
How to check if your site has it
- Compare form submissions (your form tool, site email or analytics) with new Leads in Salesforce for the same days.
- View the page source of the form and confirm the hidden
oidmatches your org ID in Salesforce Setup > Company Information. - Check that Web-to-Lead is enabled in Setup > Web-to-Lead.
- Look for Web-to-Lead error emails sent to the Default Lead Creator or the address set in Web-to-Lead settings.
- Count Web-to-Lead leads created in the last 24 hours and see if it is near 500.
- Check that every field name and custom field ID in the form still exists in Salesforce.
- Submit the live form with a test name and look for the lead.
<form action="https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="POST">
<input type="hidden" name="oid" value="00DXXXXXXXXXXXX">
<input type="hidden" name="retURL" value="https://example.com/thank-you">
<!-- Debug only: remove after testing -->
<input type="hidden" name="debug" value="1">
<input type="hidden" name="debugEmail" value="you@example.com">
<input name="first_name" type="text">
<input name="last_name" type="text" required>
<input name="company" type="text">
<input name="email" type="email">
<input type="submit" value="Send">
</form>How to fix it
Confirm the org ID
In Salesforce, go to Setup > Company Information and copy the Salesforce.com Organization ID. Make sure the form's
oidmatches it. Production and sandbox have different IDs.Enable Web-to-Lead
In Setup, search for Web-to-Lead and make sure it is enabled. Set a Default Lead Creator so error emails go to a person who reads them.
Regenerate the form HTML
In Web-to-Lead, click Create Web-to-Lead Form, pick the fields and copy the new code. This refreshes field names and custom field IDs.
Fix the daily limit
If you regularly approach 500 a day, reduce junk submissions, or move to an integration that uses the Salesforce API, which has different limits. Ask your Salesforce admin or account executive about your edition.
Run a debug submission
Add the debug fields, submit the live form and read the email Salesforce sends. Fix whatever it reports, then remove the debug fields.
Edit the embed
Paste the new Web-to-Lead HTML into a Custom HTML block, or update the settings of your form plugin if it posts to Salesforce. Clear page caches afterwards.
Use an Embed element
Add the Salesforce HTML in an Embed element, or set the Webflow form action URL to the WebToLead servlet and keep the hidden
oid. Publish the site.
Use an HTML embed
Add an Embed code element with the Salesforce form. Wix native forms cannot post to an external URL, so use the embed or a connected automation.
Check the template
Search your code for
WebToLeadand confirmoid,retURLand field names. If you post server-side, log the response and test again.
How to confirm it's fixed
Submit a test lead
Use a clearly fake name and an inbox you control on the live page.
Find it in Salesforce
Open Leads and search for the test name. Check the Lead Source, owner and your custom fields.
Check the debug email
If debug is on, it should report success. Then remove the debug fields and test once more.
Delete the test lead
Keep your data clean and avoid skewing reports.
How to prevent it happening again
- Send Web-to-Lead error emails to a shared inbox, not one person.
- Run a weekly count: form submissions versus new Salesforce leads.
- Create a Salesforce report or dashboard of leads created per day by Lead Source.
- Re-test the form after any Salesforce field change, sandbox refresh or site migration.
- Add a bot-protection step you are allowed to use, such as a CAPTCHA, to keep spam from using up the daily limit.
- Keep a note of which org ID belongs to production.
How FunnelGuard handles this
Questions people ask
Why is my Salesforce Web-to-Lead form not creating leads?
Common causes are a wrong oid (org ID), Web-to-Lead being disabled in Setup, mismatched field names, or reaching the daily limit. The visitor still sees your thank-you page because retURL controls the redirect. Add debug and debugEmail fields to get an email explaining the failure.
What is the Salesforce Web-to-Lead daily limit?
Salesforce documents a limit of 500 Web-to-Lead leads per 24 hours. Leads over the cap are not created. Check Salesforce help for your edition, as limits can change.
How do I find my Salesforce OID for Web-to-Lead?
In Salesforce go to Setup > Company Information and copy the Organization ID. Use it as the hidden oid field in the form. Sandbox orgs have a different ID from production.
Why does the thank-you page load even though no lead was created?
The redirect is set by the retURL field in your form, and Salesforce sends the visitor there whatever the result. A success page therefore does not prove a lead exists. Check Salesforce directly.
How do I debug Salesforce Web-to-Lead?
Add a hidden debug field set to 1 and a hidden debugEmail field with your address, then submit the form. Salesforce emails the outcome and any errors. Remove both fields when you finish.
Where do Web-to-Lead error emails go?
They go to the Default Lead Creator set in Web-to-Lead settings. Set it to a monitored address so failures are not missed.
Does FunnelGuard monitor Salesforce Web-to-Lead?
Not yet. FunnelGuard has no Salesforce lookup, so it cannot confirm a lead was created there. It can run your live form journey on a schedule and check that test leads reach the inbox and CRM it covers.
Related issues
- DLV-076Contact not created in the CRM after submitFix guide
- DLV-080Salesforce lead assignment rule sends lead to the wrong queueFix guide
- DLV-098CRM API key/token expired, integration silently failsFix guide
- DLV-099CRM API rate limit hit, leads dropped at peakFix guide
- DLV-100CRM custom field deleted or renamed, sync errorsFix guide
- DLV-101Required CRM field missing, record rejectedFix guide