Script tag
<div data-fb-form="YOUR-FORM-ID"></div><script src="https://forms.justinjongstra.nl/formbuilder/asset/embed.js" async></script>Use this where you cannot add a module script: most CMS HTML blocks, older page builders, and anywhere the markup is pasted rather than authored.
embed.js is a classic script rather than a module for one specific
reason: it reads its own src to work out where the renderer and the API
live, and document.currentScript is null inside a module. It carries no
renderer itself. It fetches exactly the chunk the mode needs.
Attributes
Section titled “Attributes”Everything goes on the container as data-fb-*:
<div data-fb-form="YOUR-FORM-ID" data-fb-lang="nl" data-fb-field-source="newsletter"></div>data-fb-field-<name> prefills a field. Add data-fb-api only when the
endpoints live on a different host from the bundle.