How to embed a form on your website
Embed a form on any website, free on every plan: paste a short snippet into any site builder that accepts HTML, to show it in the page or behind a button.
On this page
An embed shows your Notie form on your own website, so visitors can fill it in without leaving your site. You copy a short snippet from the Share tab and paste it into your site's HTML. It works on every plan.
There are two kinds of embed:
- Inline: the form appears in the page, between your own content.
- Popup button: a button that opens the form in a dialog over your page.
There is no full-page or slider embed, and no WordPress plugin. Any site builder that lets you paste HTML (often called an "HTML", "Embed" or "Custom code" block) works.
Before you start
The page must be published and live. The Embed on your website section only appears on the Share tab while the page is online. See How to publish a form and share the link.
Embed a form in the page
- Open the page and go to the Share tab.
- Scroll to Embed on your website.
- Leave Show the form's title ticked to show the form's title at the top of the embed, or untick it when your page already has its own heading. This applies to both kinds of embed.
- Under Inline, choose a Height:
- Grow with the content (the default): the form is always exactly as tall as it needs to be, so there is no scroll bar inside it.
- Fixed height: type a height in px, between 100 and 20,000. Taller forms scroll inside the frame. The default is 600.
- Choose a Width:
- Full width (the default): the form fills the width of the place where you paste it.
- Set a width: type a number and choose px or %. Pixels go from 200 to 4,000 (the default is 640), percent from 10 to 100. The form is never wider than the space it sits in, so it still fits on a phone.
- Click Copy snippet under the inline Snippet box.
- Paste the snippet into your website's HTML where the form should appear, and publish your site.

The snippet is two lines: a div that marks where the form goes, and a script that loads it. Keep both. While the form loads, a small loading indicator shows in its place.
Embed a form behind a button
- On the Share tab, scroll to Popup button.
- Choose Notie button to let Notie draw the button, or My own button for a plain button you style yourself.
- Under Opens, choose In the middle for a dialog over the page, or Panel, bottom right or Panel, bottom left for a panel in a corner.
- For a dialog in the middle, pick a Dialog size: Small, Medium or Large.
- Click Copy snippet and paste it into your site.
The Notie button has its own options: its text, a colour (including your own brand colour as a hex code), its size, and its position, either in the page or floating in any corner of the screen. All of them are explained in How to open a form in a popup on your website.
Pass URL parameters to the form
The URL parameters options at the top of the section apply to both kinds of embed:
- Pass the website's URL parameters to the form sends the parameters in your website's address, such as
?utm_source=newsletter, on to the form. It is on by default when the form has hidden fields, and the hint lists the parameter names the form reads. - Fixed values fills hidden fields with values you choose for this snippet, such as
ref=newsletter&utm_source=site. They win over the same names in the website address.
Without one of these, hidden fields stay empty inside an embed. See How to pass URL parameters to an embedded form for examples.
Match the embed to your website
Theme, at the top of Embed on your website, sets how both kinds of embed look on your site:
- Page setting (the default): the page's own Appearance; see Choose light or dark.
- Light: dark text on a light background.
- Dark: light text on a dark background.
- Visitor's device: light or dark, following each visitor's device setting.
With Page setting on a light page, the embed is see-through, so it takes your website's background colour, as embeds always have. Any theme you pick here, and a page set to dark or to the visitor's device, draws its own background, so the text stays readable on any website, dark or light. The theme is written into the snippet, so copy and paste the snippet again after changing it.
What visitors see
- The form, with its title at the top unless you unticked Show the form's title, on a transparent background, so it blends into your site. After sending, the thank-you message shows without the title.
- The Made with Notie badge at the bottom, unless you are on Pro.
- The same questions, logic and thank-you message as on the public link.
Responses from an embed land in the Submissions tab with Embed as their Source.
Keep the embed up to date
The embed always shows the published version of the form. After you edit the form, click Update and every embed shows the change; you do not need to paste the snippet again.
Paste a new snippet only when:
- you change the embed options above;
- you add the form's first hidden field after copying the snippet. Click Update first, and check that Pass the website's URL parameters to the form is ticked before you copy: a snippet copied with the box unticked does not pass the website's URL parameters;
- you change or release your subdomain, because snippets load from your organization's address.
If you unpublish the page, embeds stop working until you publish again.
Snippets from the old Notie
Forms made in the old Notie were not carried over to the new one, so a snippet copied from the old Notie editor shows nothing. Publish the form here and paste its snippet from the Share tab in place of the old one.
If your website has a Content Security Policy
Most websites need nothing more than the snippet. If yours sends a Content Security Policy (a header or a meta tag that lists where scripts and frames may come from), it must let the page load the embed's script and show the form's frame from Notie. Add these addresses to the script-src and frame-src lines of your policy:
script-src https://notie.pro https://*.notie.pro
frame-src https://notie.pro https://*.notie.pro
https://*.notie.pro covers your organization's own address, such as https://acme.notie.pro, which snippets use once you set a subdomain. Nothing else is needed: the embed adds no style sheet and makes no other requests from your page. If your policy has no frame-src line, add the addresses to child-src, or to default-src when it has neither. If your policy allows scripts by a nonce with 'strict-dynamic', add your nonce to the snippet's script tag instead of the script-src line.
Why the public link does not work in an iframe
Do not put your public /p/ link inside an iframe yourself. Public pages refuse to be shown inside other websites, so the browser blocks the frame. Always use the snippet from the Share tab. If an embed still does not show, see Why is my embedded form not showing?
For developers
- After a successful submission, the element from your snippet (the inline
div, the popupdivof a Notie button, or your own button) fires anotie:submittedevent that bubbles up the page. Itsdetail.publicIdis the form's id. Use it to show your own message or send an analytics event. - The snippet loads one script,
embed.js, from your Notie address. Its address ends in?v=and a version, so browsers keep the script for a long time. A snippet copied before an update still works, and a browser that has not stored its script yet gets the latest one. Paste the script line once per page; a second copy does nothing. - Embeds that your site adds after the page has loaded, as single-page apps do, are picked up automatically. To mount them on demand, call
NotieEmbed.scan(), optionally with the element to search in.
Templates for this
Preview a ready-made starting point, then make it yours.
Try it in Notie
Start from the Contact form template and change anything you like. Free forever, no credit card required.
Start with the Contact form templateWas this helpful?
Related articles
- How to open a form in a popup on your websiteAdd a button to your website that opens your form in a dialog or a corner panel, styled by Notie or by you.
- How to pass URL parameters to an embedded formFill hidden fields in an embed from your website address or from fixed values, to track campaigns and where responses come from.
- Why is my embedded form not showing?Why an embedded Notie form stays blank or shows Page not found on your website, and how to fix each cause.
- How to publish a form and share the linkPut a page or form online with one click, get its public link, find the link again later, and read the publishing status.
From the blog
Still stuck?
Email us and a person will reply. Every message is read.
Email supportHave an account? Send a message from the app.