Fillio 폼 임베드하기
Fillio 폼을 웹사이트에 추가하는 세 가지 방법: 표준, 팝업, 전체 페이지.
임베드 모드
레이아웃에 맞는 모드를 선택하세요.
- 표준 - 페이지 섹션 내 인라인 임베드
- 팝업 - 트리거 시 모달 오버레이로 열림
- 전체 페이지 - 전체 HTML 페이지를 차지함
표준 임베드
코드를 임의의 HTML 페이지에 붙여넣으세요. 폼이 인라인 iframe으로 렌더링됩니다.
임베드 코드
<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>옵션
임베드 URL에 다음 쿼리 매개변수를 추가하여 동작을 맞춤 설정하세요.
| 매개변수 | 설명 |
|---|---|
| ?hideTitle=1 | 임베드 내 폼 제목을 숨깁니다 |
| ?transparentBackground=1 | 임베드 프레임에서 흰색 배경을 제거합니다 |
| ?dynamicHeight=1 | 폼 높이에 맞게 iframe을 자동으로 조절합니다 |
팝업 임베드
어떤 버튼이나 링크에서도 폼을 트리거할 수 있습니다. Fillio 위젯 스크립트 로드가 필요합니다.
1. 스크립트 추가
<script async src="https://fillio.so/widgets/embed.js"></script>2. 버튼으로 트리거
<button data-fillio-open="YOUR_FORM_ID" data-fillio-width="500">Open Form</button>3. JavaScript로 트리거
Fillio.openPopup('YOUR_FORM_ID', {
width: 500,
hideTitle: false
});데이터 속성
| 속성 | 설명 |
|---|---|
| data-fillio-open | 폼 ID (필수) |
| data-fillio-width | 팝업 너비(픽셀) |
| data-fillio-hide-title | 1로 설정하면 폼 제목을 숨깁니다 |
전체 페이지 임베드
폼이 전체 뷰포트를 채워야 할 때 이 HTML 템플릿을 사용하세요.
<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>옵션
임베드 URL에 다음 쿼리 매개변수를 추가하여 동작을 맞춤 설정하세요.
| 매개변수 | 설명 |
|---|---|
| ?transparentBackground=1 | 임베드 프레임에서 흰색 배경을 제거합니다 |