Prerequisites
- A Webflow site on a paid site plan (required for custom code)
- A Conversion form with your form ID and field IDs ready
Install the Forms SDK script
First, add the Forms SDK script to your Webflow site so it loads on every page.Open your Webflow project settings
In the Webflow Designer, click the Webflow menu (top left) and select Project Settings.
Add the SDK script
Go to the Custom Code tab and paste the following snippet into the Head Code section:
Add the form submission script
You’ll add a custom script that intercepts your Webflow form submission and sends the data to Conversion.Give your form an ID
In the Webflow Designer, select your Form Block element. In the Element Settings panel (right side), set the ID to
conversion-form.You can use any ID you like — just make sure it matches the
getElementById call in the script below.Add the submission script
Go to Page Settings for the page that contains your form. In the Before To add more fields, add entries to the
</body> tag section, paste the following:FORM_FIELDS object and include them in the submit() call. The keys in the object passed to submit() must be the field IDs from your Conversion form.Match your input names
Make sure the
name attribute on each form input in Webflow matches the keys you pass to formData.get(). You can set input names in the Element Settings panel.For example, if your email input has name="Email", use formData.get("Email") in the script.Publish and test
Publish your site and submit a test entry. Check the Submissions tab in your Conversion dashboard to confirm the data came through.