Prerequisites
- A published Framer site
- A Conversion form with your form ID and field IDs ready
Install the Forms SDK script
First, add the Forms SDK script to your Framer site so it loads on every page.Open your Framer project settings
In the Framer editor, navigate to Site Settings > General > Custom Code.
Create a code override
Code overrides in Framer let you attach custom logic to any component. You’ll create an override that intercepts form submissions and sends the data to Conversion.Create a new code override file
In the Framer editor, open the Assets panel and click + under Code Overrides to create a new file.
Add the override code
Replace the file contents with the following:To add more fields, add entries to the
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.Apply the override to your form
Select the form component on your Framer canvas, then in the right panel under Code Overrides, choose the
withConversionForm override.Make sure to add the code override file to the parent form element. It does not need to be attached to each individual form field
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.
The
name attribute on each form input in Framer must match the keys you pass to formData.get(). For example, if your email input has name="Email", use formData.get("Email").