Skip to content

The form keeps everything you built: its look, its checks and its thank-you page. Your page only needs a place for it.

Publish the form, open Share, and copy the Embed code:

<div data-ivf-form="YOUR_FORM_SLUG"></div>
<script src="https://form.invoy.in/v1/embed.js" defer></script>

The script puts the form in a frame and keeps the frame as tall as the form. There is no scrollbar inside your page and no empty space under the form, also when an error message makes the form longer.

Add data-ivf-title="Contact us" to the div to give the frame a title for screen readers.

Put these on the div:

Attribute What it does
data-ivf-height="600" A frame of this height in pixels. A taller form scrolls inside it. Without it the frame follows the form.
data-ivf-hide-title Hides the form’s title and description.
data-ivf-align="left" Aligns the header to the left.
data-ivf-transparent Clears the page around the form, so your page shows there. The card with the questions keeps its own colour, unless the form is designed as the page itself, which has no card. Works in the page and for a whole page, not in a popup.

The form looks this way only inside a frame. Its own link is always as you made it.

The same script can show the form over your page. Put data-ivf-popup on any button or link, and a click opens it:

<button data-ivf-popup="YOUR_FORM_SLUG">Open the form</button>
<button data-ivf-popup="YOUR_FORM_SLUG" data-ivf-position="right">Open the form</button>
<script src="https://form.invoy.in/v1/embed.js" defer></script>
Attribute What it does
data-ivf-position="right" Where it opens: center (the default), top, bottom, left, right, or a corner: top-left, top-right, bottom-left, bottom-right. A left or right popup is as tall as the screen, unless you give it a height.
data-ivf-width="400" The widest it gets, in pixels. Without it a side is 460, a corner 376 and the rest 560.
data-ivf-height="600" How tall it is, in pixels. Without it, it is as tall as the form, up to the screen.
data-ivf-overlay="off" Does not dim the page behind it, and the page stays usable while the form is open.
data-ivf-close-after="3" Closes 3 seconds after the form is sent.
data-ivf-open Opens by itself instead of on a click: load, delay (with data-ivf-delay="5" seconds), scroll (with data-ivf-scroll="50" percent) or exit (the pointer leaves through the top; not on a phone). Use an empty div in place of the button.
data-ivf-once With data-ivf-open: shown once to a visitor on your website. The browser keeps this for each website apart, so the same form can still show once on another website.

data-ivf-hide-title and data-ivf-align="left" work here too.

A popup opens once the form has loaded, at the right size, so it does not jump. A form taller than the popup (or than the screen) scrolls inside it, and the “Built with” note stays in view.

For a form that fills the whole screen, use <div data-ivf-page="YOUR_FORM_SLUG"></div>. Unlike the form in the page, which sits where you put it and scrolls with your page, this one covers the screen, and a taller form scrolls inside it.

To open it from your own code: ivf.open("YOUR_FORM_SLUG"), ivf.open("YOUR_FORM_SLUG", { position: "right" }) and ivf.close(). Call them only after the script has loaded, for example from a click handler. A line placed right after a defer script tag runs before it, and ivf is not there yet.

The form tells your page when it is shown and when it is sent, as events on the page. No answers go out, only the words:

window.addEventListener("ivf:view", (event) => console.log(event.detail.slug));
window.addEventListener("ivf:submit", (event) => console.log(event.detail.slug));

Use them to count a visit or a conversion in your own analytics.

A form is shown only on websites you allow. Open Settings in the builder, add your website, and save. Until then the frame stays empty. The console of your page says why after a few seconds. See allowed websites.

A plain iframe pointing at the form’s link works too, for a site that allows no script. Its height is fixed, so add ?panel=1 to the link: the form then scrolls inside the frame when it is taller. The script above avoids that. Share, Website, can write it for you, with this already in it.