Embedding in Webflow
Add FavForm to your Webflow site using the Embed element or Custom Code.
Using an Embed element
Add an Embed element
In the Webflow Designer, press A to open Add Elements, then drag "Embed" (under Components) to your page.
Paste the embed code
Double-click the Embed element and paste:
<fav-form data-embedId="your-form-id"></fav-form>
<script src="https://favform.com/embed/v1.js" async></script>Save and close
Click "Save & Close". The embed will show as a placeholder in the Designer but will work on the published site.
Set dimensions
Select the Embed element and set a minimum height (e.g., 600px) in the Style panel.
Site-wide widgets
Add a feedback widget to every page using Project Settings:
- Go to Project Settings → Custom Code
- In the "Footer Code" section, paste the widget code
- Save and publish
<fav-form data-embedId="your-widget-id"></fav-form>
<script src="https://favform.com/embed/v1.js" async></script>Page-specific code
To add code to a specific page only:
- Select the page in the Pages panel
- Click the gear icon to open Page Settings
- Scroll to "Custom Code"
- Add your code to "Before </body> tag"
Responsive design
Make your embed responsive across breakpoints:
- Set width to 100%
- Use different heights for desktop/tablet/mobile breakpoints
- Consider using a container with max-width for better readability
/* Example: Add to an Embed element's custom CSS */
.favform-container {
width: 100%;
max-width: 700px;
margin: 0 auto;
min-height: 600px;
}Using iframe
For simpler embedding or if you have issues with the script:
<iframe
src="https://favform.com/f/your-form-id"
width="100%"
height="700"
frameborder="0"
style="border: none;">
</iframe>Webflow interactions
You can trigger form visibility with Webflow interactions:
- Wrap the Embed in a Div with display: none
- Create an interaction that shows the Div on button click
- This creates a modal-like form experience
Troubleshooting
Embed shows placeholder in Designer
This is normal. Embeds only render on the published site. Click "Publish" and view the live site.
Form not appearing on published site
Check that the embed code is correct and the form is published in FavForm. Also verify your domain is allowed in the form's embed settings.
Height issues
Set a fixed min-height on the Embed element. Forms typically need 500-800px depending on content.
Script blocked
Some ad blockers may block third-party scripts. The iframe method works as a fallback.