Nhúng biểu mẫu Fillio

Ba cách nhúng biểu mẫu: Tiêu chuẩn, Popup và Toàn trang

Các chế độ nhúng

Fillio cung cấp ba chế độ nhúng:

  • Tiêu chuẩn - Nhúng iframe nội tuyến
  • Popup - Lớp phủ modal
  • Toàn trang - Trang riêng biệt

Nhúng tiêu chuẩn

Nhúng biểu mẫu dưới dạng iframe nội tuyến. Hỗ trợ chiều cao động và các tùy chọn tùy chỉnh.

Mã nhúng

<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>

Tùy chọn

Thêm các tham số này vào URL:

Tham sốMô tả
?hideTitle=1Ẩn tiêu đề biểu mẫu
?transparentBackground=1Nền trong suốt
?dynamicHeight=1Bật chiều cao động

Nhúng popup

Mở biểu mẫu trong lớp phủ modal.

1. Thêm Script

<script async src="https://fillio.so/widgets/embed.js"></script>

2. Phương thức nút

<button data-fillio-open="YOUR_FORM_ID" data-fillio-width="500">Open Form</button>

3. Phương thức JavaScript

Fillio.openPopup('YOUR_FORM_ID', {
  width: 500,
  hideTitle: false
});

Thuộc tính dữ liệu

Thuộc tínhMô tả
data-fillio-openID biểu mẫu (bắt buộc)
data-fillio-widthChiều rộng tính bằng pixel
data-fillio-hide-titleĐặt thành "1" để ẩn tiêu đề

Nhúng toàn trang

Tạo trang HTML độc lập với biểu mẫu của bạn.

<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>

Tùy chọn

Thêm các tham số này vào URL:

Tham sốMô tả
?transparentBackground=1Nền trong suốt