1. Create Surface Constructor
- In Framer, go to project
settings. - Scroll down to
Custom Codesection.Add the following code in the
End of <body> tagsection.
data-question-id attribute.
You must replace the
<question_id> within data-question-id attribute below with the question ID from the Surface Form Builder.
2. Add the Form Component
- In Framer, click on
insertto add new component inside the website. - Select
Form Builderfrom the list of components.

3. Create new code override for the form component

- In the form component, click on
propertiesto open the properties panel. - Scroll down to
Code Overridessection. - Click on
New Fileto create a new file. - Name the file as
SurfaceFormHandler. - Click on
Createto create the file.
4. Modify the Surface Form Embedding Script
In theSurfaceFormHandler file, add the following code:

5. Apply the code override to the form component

- In the form component, click on
propertiesto open the properties panel. - Scroll down to
Code Overridessection. - Select
SurfaceFormHandlerfrom the list of files. - Select
withClassfrom the list of overrides. - Click on
Applyto apply the code override.
