Fillio-Formulare einbetten
Drei Möglichkeiten, Formulare einzubetten: Standard, Popup und Ganzseite
Einbettungsmodi
Fillio bietet drei Einbettungsmodi:
- Standard - Inline-iFrame-Einbettung
- Popup - Modales Overlay
- Ganzseite - Eigene Seite
Standard-Einbettung
Formular als Inline-iFrame einbetten. Unterstützt dynamische Höhe und Anpassungsoptionen.
Einbettungscode
<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>Optionen
Fügen Sie diese Parameter zur URL hinzu:
| Parameter | Beschreibung |
|---|---|
| ?hideTitle=1 | Formulartitel ausblenden |
| ?transparentBackground=1 | Transparenter Hintergrund |
| ?dynamicHeight=1 | Dynamische Höhe aktivieren |
Popup-Einbettung
Formular in einem modalen Overlay öffnen.
1. Skript hinzufügen
<script async src="https://fillio.so/widgets/embed.js"></script>2. Button-Methode
<button data-fillio-open="YOUR_FORM_ID" data-fillio-width="500">Open Form</button>3. JavaScript-Methode
Fillio.openPopup('YOUR_FORM_ID', {
width: 500,
hideTitle: false
});Datenattribute
| Attribut | Beschreibung |
|---|---|
| data-fillio-open | Formular-ID (erforderlich) |
| data-fillio-width | Breite in Pixeln |
| data-fillio-hide-title | Auf "1" setzen, um den Titel auszublenden |
Ganzseitige Einbettung
Erstellen Sie eine eigenständige HTML-Seite mit Ihrem Formular.
<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>Optionen
Fügen Sie diese Parameter zur URL hinzu:
| Parameter | Beschreibung |
|---|---|
| ?transparentBackground=1 | Transparenter Hintergrund |