You need your form's line: open the form in LeadVault, and under On your website, copy The line that puts the form on a page:
<script src="https://leadvault.com/embed.js" data-form="your-form" async></script>
Paste it
Put the line in the page's HTML exactly where the form should appear, inside the main content column:
<main>
<h1>Get your free quote</h1>
<script src="https://leadvault.com/embed.js" data-form="your-form" async></script>
</main>
This works the same for pages built on the server (PHP, Rails, Django, a WordPress theme file).
To load the script once somewhere else (like the end of the page), mark the spot with a div instead:
<div data-leadvault-form="your-form"></div>
<script src="https://leadvault.com/embed.js" async></script>
Fill in an answer
data-prefill answers the first questions for the visitor, like on a refinance page:
<script src="https://leadvault.com/embed.js" data-form="your-form" data-prefill="loan_purpose=refinance" async></script>
Content-Security-Policy
If your site sends a Content-Security-Policy header, add https://leadvault.com to script-src and frame-src.
Check it
In LeadVault, under On your website, type the page's address and press Check a page. Then fill the form once on the live page.
Didn't answer it? Ask us.