← Blog

Embed Your Form Anywhere: Widget, Iframe, and Script Tag

Embed Options

Script tag: Drop one line into any HTML page. The form loads in an iframe. Resizes automatically. No conflicts with your styles.

iframe: Use the form URL directly. Fixed or responsive height. Works everywhere.

React: Use the Edgentra embed component. Pass `flowId`. Same behavior as the script tag.

How the Widget Works

1. Add `<script src="https://edgentra.com/widget.js" data-flow-id="YOUR_ID" async></script>` 2. The script finds the flow, renders it, and listens for resize events. 3. Form submits to Edgentra. You get submissions in the dashboard. 4. Optional: specify `data-embed-sections` to control what shows (form only, hero + form, etc.).

Best For

Landing pages: Embed the full flow (hero + form) in your site.

Sidebar widgets: Form only. Compact. Fits in a column.

Popups: Load in a modal. Same script. Different container.

Try It

Create a form, publish, and grab the embed code from the flow settings.