How to open a form in a popup on your website
Add a button to your website that opens your form in a dialog or a corner panel, styled by Notie or by you.
On this page
A popup embed puts a button on your website. When a visitor clicks it, your form opens in a dialog over the page or in a panel in a corner, and they close it when they are done. It suits forms you do not want taking up space, such as a booking request or a "Get in touch" form.
The page must be published, and you copy the snippet from the Share tab. For the general steps and the inline embed, see How to embed a form on your website.
Set up a popup button
- Open the page and go to the Share tab.
- Scroll to Embed on your website, then to Popup button.
- Under Button, choose Notie button or My own button.
- Set the options below, including where the form opens.
- Click Copy snippet.
- Paste the snippet into your website's HTML where the button should go, and publish your site.
The snippet updates as you change the options, so set them before you copy it. If you change an option later, copy and paste the snippet again.
Style a Notie button
With Notie button, Notie draws the button for you:
- Button text: what the button says, up to 60 characters. Left empty, it says "Open the form".
- Colour: Blue, Dark, Light, or Your colour to type your brand colour as a hex code in Hex colour, such as
#0f766eor the short#0f7(the#is optional). The button text turns dark or light so it stays readable. If what you type is not a valid hex colour, you see Use a hex colour like #0f766e or #0f7. Until then the button stays blue. and the snippet keeps the blue button. - Button size: Small, Medium or Large.
- Position:
- In the page: the button sits where you pasted the snippet.
- Floating, bottom right, Floating, bottom left, Floating, top right or Floating, top left: the button stays in that corner of the screen while visitors scroll, wherever you pasted the snippet. Pick a top corner when a chat bubble or cookie banner already sits at the bottom.
Use your own button
With My own button, the snippet is a plain HTML button with the text "Open the form". Change the text and style it with your own CSS so it matches your site. Keep its data-notie-popup attribute: that is what makes it open the form. The attribute also works on another element, such as a link styled as a button.
Choose where the form opens
Under Opens, choose one of:
- In the middle (the default): a dialog over your page. The page behind it is darkened and stops scrolling.
- Panel, bottom right or Panel, bottom left: a panel in that corner of the screen. The page stays visible and usable around it, and visitors can keep scrolling.
Choose the dialog size
With In the middle, Dialog size sets how wide the dialog can get: Small, Medium (the default) or Large. A corner panel always has the same width, so this option is hidden for it.
On a phone, the dialog in the middle fills the whole screen: the form scrolls inside it, the Ă— stays in its corner, and the page behind does not move. A corner panel fills the available width, and a long form scrolls inside it.
Light or dark popup
The dialog or panel takes the embed's theme: with Dark, or with Page setting on a page whose Appearance is dark, it opens dark, with a light Ă—. Set it under Theme at the top of the embed section; see Match the embed to your website.
What visitors see
- They click the button and the form opens in the middle of the page or in the corner you chose, with its title at the top. To leave the title out, untick Show the form's title at the top of the embed section before you copy the snippet.
- They fill in the form. Required questions, validation and logic work exactly as on the public link.
- After sending, they see your thank-you message inside the dialog. The dialog does not close by itself.
Visitors close a dialog in the middle by pressing Esc, clicking the Ă— in its corner, or clicking outside it. On a phone, where the dialog fills the screen, the phone's Back closes it too, and the visitor stays on your page. A corner panel closes with Esc or the Ă—; clicking the page around it does not close it. Focus then goes back to the button, which helps people who use a keyboard.
Responses from a popup show Embed as their Source in the Submissions tab.
Fill hidden fields from the popup
The URL parameters options at the top of the embed section apply to popups too. Use them to pass your website's parameters, such as utm_source, or fixed values into the form's hidden fields. See How to pass URL parameters to an embedded form.
If the button does nothing
- Check that you pasted the whole snippet, including the
scriptline. - Check that the page is still published. An unpublished form does not load in the dialog.
- If you changed your subdomain, copy a fresh snippet.
More checks are in why an embedded form does not show.
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 embed a form on your websiteEmbed 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.
- 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.
Still stuck?
Email us and a person will reply. Every message is read.
Email supportHave an account? Send a message from the app.