Script options
Every attribute the script tag accepts, and what happens if you omit it.
Attributes
Only the first one is required. The rest have sensible defaults, and you can safely leave all of them out.
data-kapture-slug- The contractor's form slug. Without it nothing is inserted, and the script writes a warning to the browser console.
data-kapture-target- CSS selector for the element the form should be placed in, for example "#quote-form". If the selector matches nothing, the script warns in the console and falls back to the default. The element must exist when the script runs.
data-kapture-title- The iframe's accessibility title — what screen readers announce. The form itself is in Danish, so the default is too. Change it if the form plays a different role on the page.
data-kapture-max-width- Maximum width of the form, for example "480px". The container is centred automatically when this is set.
data-kapture-autoscroll- Set to "off" to disable auto-scroll. By default the page scrolls back to the top of the form when a new, shorter step would otherwise end up above the top of the screen. Turn it off if the host page manages scrolling itself.