Embed → Standard
Standard inline embed
Paste two lines of HTML into any page and your form appears inline, sized to fit its content.
1. The snippet
In the Maxforms app, click Share on any form, switch to the Embed tab, and copy the Standard snippet. It looks like this:
<script>
(function(w,d,u){w.Maxforms=w.Maxforms||function(){(w.Maxforms.q=w.Maxforms.q||[]).push(arguments)};if(d.querySelector('script[src="'+u+'"]'))return;var s=d.createElement('script');s.async=1;s.src=u;d.head.appendChild(s)})(window,document,'https://embed.maxforms.com/v1/embed.js');
</script>
<div data-maxforms-form="YOUR_FORM_CODE" data-maxforms-dynamic-height="1"></div>
The <script> block bootstraps our SDK. The <div> is where the iframe mounts.
Paste once per page; you can include any number of <div data-maxforms-form> nodes after it.
2. Options
Add data attributes to the <div> to tweak appearance:
| Attribute | Value | Effect |
|---|---|---|
| data-maxforms-dynamic-height | 1 | Iframe auto-resizes to content (default on). |
| data-maxforms-hide-title | 1 | Hide the form's title. |
| data-maxforms-align-left | 1 | Left-align (default is centered). |
| data-maxforms-transparent-background | 1 | Transparent iframe background. |
| data-maxforms-width | 100% | Iframe width (when dynamic_height off). |
| data-maxforms-height | 500 | Iframe height in px (when dynamic_height off). |
4. Multiple embeds on one page
Paste as many <div data-maxforms-form> elements as you want. Each gets a unique
embedId (mf_1, mf_2, …) that's included in every event payload —
useful when you want to route analytics by embed.