Webflow
Add a Surface Form to your Webflow Site
Before proceeding, make sure you have installed the Surface Tag on your website. Follow these steps to install the Surface Tag first:
Go to the webflow dashboard.
Go to Project Section
> Custom Code
.
Add the following code in the Start of <head>
tag section.
The head
section containing the Surface Tag
should now look like this:
Embedding a Surface Form in your Webflow Site
There are three different ways to embed a Surface Form.
To embed an inline form, first go to the Webflow dashboard > Project Section
> Select Custom Code
and add the following custom code into the footer
code section.
Here’s what the Webflow footer
code section should look like:
Next, navigate to your Webflow Design Studio and select the section where the form will be added.
After selecting the section, you should see the Style
tab in the right panel.
Now add surface-form-target
in the Style Selector:
To embed an inline form, first go to the Webflow dashboard > Project Section
> Select Custom Code
and add the following custom code into the footer
code section.
Here’s what the Webflow footer
code section should look like:
Next, navigate to your Webflow Design Studio and select the section where the form will be added.
After selecting the section, you should see the Style
tab in the right panel.
Now add surface-form-target
in the Style Selector:
To configure a popup form, first go to the Webflow dashboard > Project Section
> Select Custom Code
and add the following custom code into the footer
code section.
Here’s what the Webflow footer
code section should look like:
Next, navigate to your Webflow Design Studio and select the button that triggers the form.
After Selecting the button, you should see Style
tab on your right panel.
Finally, add surface-form-button
in Style Selector:
To configure a slideover form, first go to the Webflow dashboard > Project Section
> Select Custom Code
and add the following custom code into the footer
code section.
Here’s what the Webflow footer
code section should look like:
Next, navigate to your Webflow Design Studio and select the button that triggers the form.
After Selecting the button, you should see Style
tab on your right panel.
Finally add surface-form-button
in Style Selector:
Finally, save and publish your changes. Your Surface Form should now be embedded on your Webflow website!