Embed a form on your website
Checked against the product on November 25, 2026
Short answer
Open the Share tab, choose Embed in a web page and select New embed. Pick an Embed mode, adjust the design, select Apply changes, then select Get the code and paste the snippet into your page’s HTML.
An embed shows your form inside your own website, so visitors never leave the page. One form can have several embeds, each with its own mode and design, and all responses land in the same Results.
- Publish the form, then open the Share tab.
- Choose Embed in a web page.
- Select New embed. Give it a name you will recognize, such as Pricing page popup.
- On the Design tab, choose an Embed mode and set the options for it, such as Width and Height or the button text and color.
- Check the Advanced tab for options such as Fullscreen on mobile, Hide headers and Auto focus first field.
- Select Apply changes.
- Select Get the code. In Embed your form, pick your Platform to see matching steps, then select Copy code.
- Paste the code into your page where the form should appear and publish the page.
The snippet has two parts: a div with a data-formit-embed attribute that holds your embed ID, and a script tag that loads embed.js. Place the div where the form should appear and make sure the script loads once per page.
Questions
Do I need to update the code when I edit the form?
No. The embed always loads the latest published version. Select Update in the builder to publish your edits.
The form does not appear on my page. What should I check?
Check that the form is published, the full snippet was pasted, and your page allows the script to load. See the troubleshooting article for more.
Can developers control the embed with code?
Yes. The Embed SDK tab links to the SDK documentation for opening, closing and listening to the form from your own code.