Back to all insights

How to Connect Your Website Contact Form to Salesforce

Three ways to send website enquiries to Salesforce: Web-to-Lead, a connector or an API integration. What each costs, its limits, and how to make sure no lead is lost.

Connect your contact form to Salesforce: Web-to-Lead, connectors, API and a checklist

There are three ways to connect a website contact form to Salesforce: Web-to-Lead, Salesforce’s built-in form feature; a connector, such as a form plugin add-on or an automation tool; or a direct API integration built into your website. Web-to-Lead is free and quick but limited to 500 leads a day and keeps no copy on your site. An API integration takes more work up front, but it saves every enquiry on your website first and can create or update any Salesforce record.

This guide explains each option, what can go wrong, and how to choose.

The three options at a glance

OptionBest forWatch out for
Web-to-LeadA simple enquiry form that only needs to create leads500 leads a day, no copy saved on your website, spam counts toward the limit
Connector (plugin add-on or automation tool)Teams without a developer who already use a form pluginA monthly fee, and form data passes through another company
API integrationQuote forms, sign-ups and anything that updates contacts, accounts or custom objectsNeeds a developer and a Salesforce app set up with the right permissions

Option 1: Web-to-Lead

Web-to-Lead is built into Salesforce. You choose the lead fields you want, Salesforce generates an HTML form, and the form sends each submission straight to your org as a new lead.

  1. In Salesforce Setup, search for Web-to-Lead and turn it on. Choose the Default Lead Creator, the user who owns leads that no assignment rule picks up.
  2. Turn on reCAPTCHA and register a key pair with Google. Spam submissions count toward your daily limit, so this matters.
  3. Click Create Web-to-Lead Form, pick the fields, and set the return URL: the thank-you page visitors see after sending.
  4. Copy the generated HTML. Your developer restyles it to match your site, keeping the field names and the hidden oid field, which identifies your org.
  5. Send a test lead and check it arrives with the right owner, lead source and campaign.

The limits. Salesforce allows 500 Web-to-Lead requests a day. Above that, the details are emailed to the Default Lead Creator instead of becoming leads. Because the form posts straight from the visitor’s browser to Salesforce, your website keeps no copy: if a field name is wrong or a required field is missing, the enquiry can be lost without anyone noticing. Web-to-Lead also only creates leads. It cannot update an existing contact or account.

Option 2: a connector

Many form plugins sell a Salesforce add-on, and automation tools such as Zapier and Make can pass form entries to Salesforce without code. The form saves the entry on your website, then the connector sends it on.

  • Good: quick to set up, entries are kept on your site, and field mapping happens in a visual editor.
  • Less good: a recurring fee, another login to manage, and personal data passing through a third company, which your privacy policy should name.
  • Check: what happens when Salesforce rejects an entry. A good connector shows the error and lets you send it again.

Option 3: an API integration

Your website saves each enquiry, then sends it to Salesforce through the REST API. If Salesforce is briefly unavailable or rejects the data, the entry stays on the site and is sent again, so no lead is lost. The integration can also look for an existing contact by email before creating a lead, attach the enquiry to the right campaign, or create cases and custom records.

For a website talking to Salesforce with no person logged in, the usual setup is the OAuth 2.0 client credentials flow, which Salesforce documents for server-to-server integrations. One change to know about: since the Spring ’26 release, creating new connected apps is disabled by default, and Salesforce points new integrations to External Client Apps. Existing connected apps keep working.

  1. Create an integration user with only the permissions the website needs, for example creating leads.
  2. Create an External Client App, enable OAuth and the client credentials flow, and set that integration user to run it.
  3. Store the consumer key and secret on the server, never in the page’s code.
  4. Map each form field to a Salesforce field. On the standard Lead object, Last Name and Company are required.
  5. Ask the API to apply your lead assignment rules, so new leads reach the right person.
  6. Log every request, retry failures, and alert someone when an entry still fails.

Whichever option you choose

  • Track where leads come from. Pass the lead source, page and campaign (for example from UTM parameters) in hidden fields, so reports show which pages bring in business.
  • Keep forms short. Every extra field lowers the number of people who finish the form. Ask for the rest on the first call.
  • Record consent separately. Replying to an enquiry is not the same as permission to send marketing emails. Use a separate, unticked box and map it to its own field.
  • Test in a sandbox first, then send a real test after launch and check the owner, source and any automation that should fire.
  • Update your privacy policy to say that enquiries are stored in Salesforce, and in any connector you use.

How we connect forms to Salesforce

For a simple enquiry form, Web-to-Lead with reCAPTCHA is often enough. When a form needs to update existing records, handle quote requests or never lose an entry, we build an API integration: the website keeps every enquiry, sends it to Salesforce, and retries if anything fails. See our CRM integration services, or how we build websites for US businesses and UK businesses.

Frequently asked questions

Is Web-to-Lead free?

It is included in Salesforce editions that have leads, at no extra cost. The limit is 500 web leads a day; Salesforce Support can discuss more.

Can a form create contacts instead of leads?

Not with Web-to-Lead, which only creates leads (Web-to-Case creates cases). A connector or an API integration can create or update contacts, accounts and custom objects.

Does this work with WordPress?

Yes. All three options work on WordPress. An API integration can be part of your theme or a small plugin, so it needs no paid add-ons.

Why did my test lead not arrive?

The usual causes are a missing required field (Last Name or Company), a renamed field on the form, reCAPTCHA not completed, a validation rule in Salesforce, or the daily limit. With Web-to-Lead nothing is saved on your site, so check the field names in the HTML first.

Sources

Checked in November 2026. Salesforce changes its setup screens with each release, so names may differ slightly in your org.

Let's build something exceptional.

Have a website, CMS or CRM project in mind? Let's discuss it and turn your vision into a practical solution.