Embedding Fillio Forms
Three ways to add a Fillio form to any website: Standard, Popup, and Full Page.
Embed Modes
Choose the mode that fits your layout.
- Standard - Inline embed inside a page section
- Popup - Opens as a modal overlay when triggered
- Full Page - Takes over an entire HTML page
Standard Embed
Paste the code into any HTML page. The form renders as an inline iframe.
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
Append these query parameters to the embed URL to customize behavior.
| Parameter | Description |
|---|---|
| ?hideTitle=1 | Hides the form title inside the embed |
| ?transparentBackground=1 | Removes the white background from the embed frame |
| ?dynamicHeight=1 | Resizes the iframe automatically to match the form height |
Popup Embed
Trigger the form from any button or link. Requires loading the Fillio widget script.
1. Add the Script
<script async src="https://fillio.so/widgets/embed.js"></script>2. Trigger with a Button
<button data-fillio-open="YOUR_FORM_ID" data-fillio-width="500">Open Form</button>3. Trigger with JavaScript
Fillio.openPopup('YOUR_FORM_ID', {
width: 500,
hideTitle: false
});Data Attributes
| Attribute | Description |
|---|---|
| data-fillio-open | Form ID (required) |
| data-fillio-width | Popup width in pixels |
| data-fillio-hide-title | Set to 1 to hide the form title |
Full Page Embed
Use this HTML template when the form should fill the entire viewport.
<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
Append these query parameters to the embed URL to customize behavior.
| Parameter | Description |
|---|---|
| ?transparentBackground=1 | Removes the white background from the embed frame |