How can I integrate Webflow and Salesforce, including styling, success message, and hidden form fields, while keeping the overall functionality of a standard Webflow form? Any tips on the best way to proceed?

TL;DR
  • Design and style your form in Webflow, adding necessary input and hidden fields aligned with Salesforce requirements.  
  • Use Zapier or Make to send form submissions to Salesforce, mapping all fields appropriately while preserving Webflow’s default success/error messaging.

Integrating a Webflow form with Salesforce requires syncing form submissions to Salesforce while maintaining Webflow’s styling, interactions, and default success/error messages. Here’s the best way to go about it while preserving Webflow’s native form behavior.

​

1. Use Webflow’s Native Form for Styling and Functionality

​

  • Design your form in Webflow as usual, using the native form element and fields.
  • Include all the necessary input fields (name, email, etc.) and style them via Webflow Designer.
  • Webflow will automatically handle things like validation, success, and error states unless customized.

​

2. Add Hidden Fields for Salesforce Mapping

​

  • Use “Add Field” in the form element, then change the field type to Hidden.
  • Hidden fields are useful for values like Lead Source or Campaign ID that Salesforce expects.
  • Give each hidden field a unique name (e.g., leadsource, campaignid) to match the field names in Salesforce.

​

3. Set Up Form Submission with Webflow + Zapier or Make (Integromat)

​

  • Webflow does not natively integrate with Salesforce, so you’ll need a third-party automation tool like Zapier or Make.
  • In Zapier:
  • Trigger: Webflow form submission.
  • Action: Salesforce – Create Record (e.g., Lead or Contact).
  • Match Webflow field names to the appropriate Salesforce fields.
  • Include the hidden fields in the data mapping.

​

4. Preserve Webflow’s Success and Error Messages

​

  • Use Webflow’s built-in form settings to handle post-submission responses. Don’t set a redirect URL unless necessary.
  • The form will show the success or error message blocks automatically.
  • You can style Success Message and Error Message directly in the Webflow Designer.

​

5. Apply Field Styling and Layout in Designer

​

  • Style all fields (including hidden ones, if you expose them temporarily for design purposes) with Webflow’s CSS tools.
  • Make sure all labels, placeholders, spacing, and buttons match your brand style.

​

6. (Optional) Send Data Directly via Custom Form Action

​

If Zapier isn’t flexible enough or you want direct integration:

​

  • Set the form’s Action URL to your Salesforce endpoint (e.g., using a Marketing Cloud form handler or Salesforce Web-to-Lead URL).
  • Use method="POST".
  • Manually ensure all fields (names & IDs) match Salesforce’s expected format.
  • This removes Webflow’s native success/error interaction, so you’d need to custom-code a JS listener for response handling.

​

7. Use JavaScript Only if Needed

​

  • Avoid custom JS unless you're customizing post-submission behavior or dynamically inserting values.
  • Example: use JS to set hidden field values dynamically based on query parameters or page data (e.g., auto-fill utm_source).

​

Summary

​

To integrate Webflow with Salesforce while keeping native styling and success messaging:

  • Build and style the form in Webflow.
  • Add hidden fields needed by Salesforce.
  • Use Zapier or Make to connect form data to Salesforce.
  • Preserve Webflow’s form success/error states.
  • Only use manual form actions and JavaScript if necessary.

​

This method ensures your form looks and behaves like a standard Webflow form while seamlessly pushing data into your Salesforce CRM.

Rate this answer

Other Webflow Questions