Embed forms anywhere: inline, full-screen, and popup

Embed forms anywhere: inline, full-screen, and popup

Last updated:
▪
4 min read

A form that lives on a standalone link is useful, but most forms need to live on your website — on a contact page, inside a landing page, or as a popup that appears at the right moment.

We’ve just shipped three embedding options for Fomr forms.

Standard embed

The simplest option. Copy a code snippet, paste it into your website’s HTML, and the form appears inline on the page. It’s an iframe plus one small script (a few KB) that resizes the form to fit its content, so there’s no inner scrollbar to manage.

<iframe
src="https://fomr.io/s/embed/YOUR_FORM_ID"
title="Contact form"
width="100%"
height="500"
loading="lazy"
allow="clipboard-write; fullscreen"
style="border: 0"
></iframe>
<script async src="https://fomr.io/widget/embed.js"></script>

This works on any website: WordPress, Squarespace, Wix, static HTML, React apps, Webflow — anywhere you can paste HTML. The embed is responsive by default, so it adapts to the container width, and it loads without slowing your page down.

Best for: contact pages, quote request forms, feedback forms on product pages, registration forms on event landing pages.

Full-screen embed

Some forms deserve the full screen. A full-screen embed gives your form an entire page — no navigation, no sidebar, no distractions. Just the form.

<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Contact form</title>
<script async src="https://fomr.io/widget/embed.js"></script>
</head>
<body style="margin: 0">
<iframe
src="https://fomr.io/s/embed/YOUR_FORM_ID?embedType=fullscreen"
title="Contact form"
width="100%"
height="100%"
allow="clipboard-write; fullscreen"
style="position: fixed; inset: 0; border: 0"
></iframe>
</body>
</html>

This is ideal for forms where completion is the only goal. Lead magnets, job applications, detailed surveys. The respondent’s attention is fully on the form, which typically improves completion rates.

You get a dedicated URL that you can link to from anywhere: email campaigns, social media posts, QR codes, or buttons on your website.

The newest option. A popup form appears on top of your existing page content, opened by a button click. It’s a button plus the same small script, and the popup resizes to fit the form.

<button
type="button"
data-fomr-open="YOUR_FORM_ID"
data-fomr-popup-overlay="true"
data-fomr-popup-position="center"
>
Open form
</button>
<script async src="https://fomr.io/widget/embed.js"></script>

Center popup and corner popup form display options

Two popup styles are available:

Center popup — A modal overlay that appears in the center of the screen. Good for forms triggered by a “Contact Us” or “Get a Quote” button. The overlay dims the background, focusing attention on the form.

Bottom-right corner popup — A smaller, less intrusive popup that sits in the bottom corner of the screen. Think of a feedback widget or a quick survey. It’s visible but doesn’t block the page content.

Both popup types are dismissible. Respondents can close them by clicking outside or pressing Escape, and return to what they were doing. Any element with the same data-fomr-open attribute opens the popup. On a site builder that only lets you set a link URL, add the script to your site and link the button to #fomr-open=YOUR_FORM_ID.

One form, multiple embed options

Here’s what’s nice: you don’t have to create separate forms for each embed method. Build one form, and use it as an inline embed, a full-screen page, and a popup — all from the same form URL.

Open Configure → Add to website in the editor to copy the code for Standard, Popup, or Fullscreen. Use the matching snippet above; all three load the same form.

When to use each option

Embed typeBest forAttention level
StandardContact pages, landing pages, product pagesMedium — competes with other page content
Full-screenApplications, surveys, lead magnetsHigh — nothing else on the page
Center popupQuote requests, CTAs, gated contentHigh — overlay focuses attention
Corner popupFeedback widgets, quick surveys, supportLow-key — present but not intrusive

The right choice depends on the form’s purpose and where it appears in the user journey. A feedback form on a SaaS dashboard works best as a corner popup. A registration form for an event works best as a standard embed or full-screen page.

Available now

All three embed options are available on the free plan. No response limits, no form limits.

Create a form and try embedding it on your site.

Bohdan Khodakivskyi

Bohdan Khodakivskyi

Founder of Fomr

Build yours in minutes with these templates

Browse all templates →

Free, ready-made templates. Open one, customize every detail in the editor, and share it.

Responsive Contact Form preview

Responsive Contact Form

Use this embed form on website to collect the details you need before starting a conversation, project, or request. It helps teams qualify submissions and respond with better context.

Event Registration Form preview

Event Registration Form

Effortlessly gather attendee information for any event with this registration form template. It streamlines sign-ups, manages workshop selections, and collects vital details like dietary needs, ensuring smooth planning.

Customer Feedback Survey Form preview

Customer Feedback Survey Form

Use this customer feedback form to collect clear feedback, satisfaction scores, and open-ended comments in one place. It helps teams understand what is working well and where the experience can improve.

Email Signup Form preview

Email Signup Form

Effortlessly capture email addresses with an engaging, conversational signup form. Instantly connect new leads to your sales and marketing tools for seamless follow-up.

Your next form could be the best-looking thing on your site.

Free forever. Unlimited responses. No signup to start.