Skip to Content
CollectFormsEmbed the form on your website

Embed the form on your website

Besides the link, the form can appear inside your website. You choose between showing it in the middle of a page (inline) or in a window on top of the page (modal).


Inline or modal?

Inline

The form appears where you paste the code, as part of the page. Its height adjusts to the content on its own.

Good for a “Leave a testimonial” page.

The form opens in a popup on top of the page, when a button is clicked, after some time or after some scrolling.

Good for asking for a testimonial without taking visitors away from the page.


Get the code

Open sharing

In the form editor, click the share icon. Or, in the Forms list, use the ⋮ menu › Share.

Choose the format

Under Embed on your website, choose Inline or Modal.

Copy and paste

Click Copy code snippet and paste it into your website’s HTML.

The Embed on your website card with the Modal tab open, the After elapsed time trigger and the three snippets.


Inline

Paste the code where the form should appear. The app generates the code with your form’s ID; the example below uses YOUR_FORM_ID.

HTML
<script async src="https://app.testimoniacs.com/form-embed.js"></script> <div data-testimoniacs-form="YOUR_FORM_ID"></div>

First choose the Open trigger:

TriggerWhen the popup opens
On button clickWhen the visitor clicks a button on your page. This is the default.
After elapsed timeAfter the Seconds delay (default: 10).
After scrollingWhen the visitor scrolls the % of page scrolled (default: 60%).

Then copy the snippets. The first one goes in the <head> or the <body>; the other two are ways to open the popup:

<script async src="https://app.testimoniacs.com/form-embed.js" data-testimoniacs-popup="YOUR_FORM_ID" data-trigger="button"></script>

With the time or scroll triggers, the app replaces data-trigger="button" with data-trigger="time" data-delay="10" or data-trigger="scroll" data-scroll="60". Any element with data-testimoniacs-form-open opens the popup. The popup closes with ✕ or the Esc key.

The After elapsed time and After scrolling triggers open the popup only once per browser session, and no longer open for people who have already responded. To test again, open your page in a new incognito window.


Frequently asked questions

Does it work on WordPress, Webflow, Wix and others?

Yes, on any website that accepts custom HTML. Use your platform’s HTML or embed code block.

Does the embedded form use my custom domain?

No. The code always loads from the app’s domain (app.testimoniacs.com). The custom domain applies to the form link.

Can I see where responses came from?

Yes. In Insights, the form sessions card splits visits by source: link, inline embed or modal embed.

Last updated on