This feature requires paid tier of framer!
1. Create Surface Constructor
- In Framer, go to project
settings
. - Scroll down to
Custom Code
section.Add the following code in theEnd of <body> tag
section.
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
insert
to add new component inside the website. - Select
Form Builder
from the list of components.

3. Create new code override for the form component

- In the form component, click on
properties
to open the properties panel. - Scroll down to
Code Overrides
section. - Click on
New File
to create a new file. - Name the file as
SurfaceFormHandler
. - Click on
Create
to 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
properties
to open the properties panel. - Scroll down to
Code Overrides
section. - Select
SurfaceFormHandler
from the list of files. - Select
withClass
from the list of overrides. - Click on
Apply
to apply the code override.