GenZformHelp Center
IntegrationsEmbed Guides

Embed on Any Website

Learn how to embed GenZform forms on any HTML website using iframe embeds, popups, or full-page layouts.

GenZform provides three ways to embed forms on your website: Standard (inline iframe), Popup (button-triggered modal), and Full Page (takes entire viewport). Each option includes the GenZform embed script that handles responsive sizing and interactions.

Getting Your Embed Code

Open your form in the editor

Navigate to your form in the GenZform dashboard and click the Share tab.

Click the Share tab to access embed options

Select your embed style

Choose from three embed styles:

  • Standard - Inline iframe that fits within your page content
  • Popup - Button that opens the form in a modal overlay
  • Full Page - Form takes up the entire viewport

Select your preferred embed style

Copy the embed code

Click Copy to copy both the embed element and the required script tag. Paste this code into your website's HTML where you want the form to appear.

Embed Styles

Standard Embed

The standard embed displays your form inline within your page content using an iframe. The height automatically adjusts based on the form content.

Standard embed options

<iframe
  data-genz-form="YOUR_FORM_ID"
  data-embed-style="standard"
  src="https://genzform.com/f/YOUR_FORM_ID"
  style="width: 100%; height: 500px; border: none;"
></iframe>
<script src="https://genzform.com/embed-v1.js"></script>

Options:

  • Min Height - Set a minimum height in pixels to prevent the form from being too short

The popup embed creates a button that opens your form in a modal overlay. This is ideal for lead capture or contact forms that shouldn't take up page space.

Popup embed options

<button
  data-genz-form="YOUR_FORM_ID"
  data-embed-style="popup"
  data-dark-overlay="true"
>Open Form</button>
<script src="https://genzform.com/embed-v1.js"></script>

Options:

  • Width - Set the popup width in pixels (default: 450px)
  • Dark Overlay - Enable/disable the dark background behind the popup
  • Popup open on load - Automatically open the popup when the page loads
  • Popup Delay - Delay in milliseconds before auto-opening (requires "open on load" enabled)

Full Page Embed

The full page embed makes your form take up the entire viewport. Use this when you want the form to be the primary focus, such as on a dedicated landing page.

Full page embed options

<iframe
  data-genz-form="YOUR_FORM_ID"
  data-embed-style="full_page"
  src="https://genzform.com/f/YOUR_FORM_ID"
  style="width: 100%; height: 100%; border: none;"
></iframe>
<script src="https://genzform.com/embed-v1.js"></script>

For full page embeds, ensure the parent container has height: 100vh or similar to allow the form to fill the viewport.

Data Attributes Reference

The GenZform embed script reads these data attributes to configure your embed:

AttributeDescriptionValues
data-genz-formYour form's unique identifier (required)Form ID from Share tab
data-embed-styleThe embed style to usestandard, popup, full_page
data-min-heightMinimum height for standard embedsNumber in pixels (e.g., 400)
data-widthWidth for popup embedsNumber in pixels (e.g., 500)
data-dark-overlayShow dark background for popuptrue or false
data-popup-open-on-loadAuto-open popup on page loadtrue or false
data-popup-delayDelay before auto-opening popupMilliseconds (e.g., 3000)

Styling Tips

Centering the Form

<div style="display: flex; justify-content: center;">
  <iframe
    data-genz-form="YOUR_FORM_ID"
    data-embed-style="standard"
    src="https://genzform.com/f/YOUR_FORM_ID"
    style="width: 100%; max-width: 600px; height: 500px; border: none;"
  ></iframe>
</div>
<script src="https://genzform.com/embed-v1.js"></script>

Custom Popup Button

Style the popup trigger button to match your website's design:

<button
  data-genz-form="YOUR_FORM_ID"
  data-embed-style="popup"
  data-dark-overlay="true"
  style="background: #22c55e; color: white; padding: 12px 24px; border: none; border-radius: 8px; cursor: pointer; font-size: 16px;"
>Get a Quote</button>
<script src="https://genzform.com/embed-v1.js"></script>

Frequently Asked Questions

Will the form work on any website?

Yes. The iframe embed works on any website that supports HTML, including static sites, CMSs, and web applications.

Does the form height adjust automatically?

For standard embeds, the GenZform script automatically adjusts the iframe height based on the form content. For full page embeds, ensure the parent container has an explicit height.

Can I remove the GenZform branding?

Yes. Branding removal is available on Pro plans. Go to Customize in the form editor to toggle branding off.

Can I embed the same form multiple times on one page?

Yes. Each embed operates independently. Just make sure to include the script tag only once.


Platform-Specific Guides

On this page