Embedding Fillio Forms
Three ways to embed forms: Standard, Popup, and Full Page
Embed Modes
Fillio provides three embed modes:
- Standard - Inline iframe embed
- Popup - Modal overlay
- Full Page - Dedicated page
Standard Embed
Embed form as an inline iframe. Supports dynamic height and customization options.
Embed Code
<iframe data-fillio-src="https://fillio.so/embed/YOUR_FORM_ID" width="100%" height="800" frameborder="0" marginheight="0" marginwidth="0" title="Form" loading="lazy"></iframe>
<script>var d=document,w="https://fillio.so/widgets/embed.js",v=function(){"undefined"!=typeof Fillio?Fillio.loadEmbeds():d.querySelectorAll("iframe[data-fillio-src]:not([src])").forEach((function(e){e.src=e.dataset.fillioSrc}))};if("undefined"!=typeof Fillio)v();else if(d.querySelector('script[src="'+w+'"]')==null){var s=d.createElement("script");s.src=w,s.onload=v,s.onerror=v,d.body.appendChild(s);}</script>Options
Add these parameters to the URL:
| Parameter | Description |
|---|---|
| ?hideTitle=1 | Hide form title |
| ?transparentBackground=1 | Transparent background |
| ?dynamicHeight=1 | Enable dynamic height |
Popup Embed
Open form in a modal overlay.
1. Add Script
<script async src="https://fillio.so/widgets/embed.js"></script>2. Button Method
<button data-fillio-open="YOUR_FORM_ID" data-fillio-width="500">Open Form</button>3. JavaScript Method
Fillio.openPopup('YOUR_FORM_ID', {
width: 500,
hideTitle: false
});Data Attributes
| Attribute | Description |
|---|---|
| data-fillio-open | Form ID (required) |
| data-fillio-width | Width in pixels |
| data-fillio-hide-title | Set to "1" to hide title |
Full Page Embed
Create a standalone HTML page with your form.
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<title>Form</title>
<script async src="https://fillio.so/widgets/embed.js"></script>
<style type="text/css">
html { margin: 0; height: 100%; overflow: hidden; }
iframe { position: absolute; top: 0; right: 0; bottom: 0; left: 0; border: 0; }
</style>
</head>
<body>
<iframe data-fillio-src="https://fillio.so/embed/YOUR_FORM_ID" width="100%" height="100%" frameborder="0" marginheight="0" marginwidth="0" title="Form"></iframe>
</body>
</html>Options
Add these parameters to the URL:
| Parameter | Description |
|---|---|
| ?transparentBackground=1 | Transparent background |