Embed a form on your website
Add your form to your website with a short snippet. People fill it in without leaving your page.
Get the code
Open your form, go to Share, choose how the form shows up under Add to your website, and click Get the code:
- On your page: show the form on your page
- Popup: opens from your button or link
- Slide-in: a button in the corner of every page
- Full page: fills the whole page

For On your page, the code looks like this, with your form’s ID:
<div data-wlf-form="frm_yourform"></div>
<script src="https://wlforms.com/embed.js" async></script>
Paste the code into your site
In your website editor, add an embed block where the form should go, paste the code and publish your site. Most builders, like Webflow, Framer, Squarespace and WordPress, call it Embed or Custom HTML.
For Slide-in, paste the code where your site adds code to every page. For Full page, paste it on a new, empty page.
For developers
- Add hidden fields to attach your own data, like a user ID, to each submission.
- Open the form from your own code, and run code after each submission.