1. Add Form Block component

- In Webflow, click on
Add Elementto add a new element. - Select
Form Blockfrom the list of elements.
2. Configure Form Block component

- In the form block component, Select
Formfrom the list of elements. - On the right side, under
Style Selector, add thesurface-form-handlerclass to the form.
3. Prefill Other Fields (Optional)
If you want to prefill fields other than the email input, you can do so by adding custom attributes to your Webflow form fields.Identity Info Fields
For identity-related fields (except email), add a custom attribute to the input field in Webflow:- Select the input field in Webflow
- Go to Settings in the right sidebar
- Scroll to the bottom and click Add Custom Attribute
- Set the attribute:
- Key:
data-field-name - Value: One of the supported field names below
- Key:

Supported Identity Field Values
Supported Identity Field Values
| Field Name | Description |
|---|---|
firstName | First name |
lastName | Last name |
emailAddress | Email address |
phoneNumber | Phone number |
companyName | Company name |
numberOfEmployees | Number of employees |
websiteUrl | Website URL |
title | Job title |
streetAddress | Street address |
aptSuiteEtc | Apartment/Suite/etc. |
city | City |
state | State |
country | Country |
zipCode | Zip/Postal code |
companyRevenue | Company revenue |
Other Form Fields
For all other fields (non-identity fields), you’ll need to use the question ID from your Surface form:- Get the Question ID from the Surface Form Builder

- In Webflow, select the input field
- Go to Settings in the right sidebar
- Scroll to the bottom and click Add Custom Attribute
- Set the attribute:
- Key:
data-question-id - Value: The component ID from Surface
- Key:
This method works with the following Surface form components:
- Short Input
- Long Input
- Dropdown
- Multiple Choice Question
4. Surface Form Constructor
Go to the Webflow dashboard >Project Section > Select Custom Code and add the following custom code into the footer code section.
Add the data-question-id attribute to your Surface form script.
You must replace the
<question_id> within data-question-id attribute below with the question ID from the Surface Form Builder.
