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-slugRequired
The contractor's form slug. Without it nothing is inserted, and the script writes a warning to the browser console.
data-kapture-targetOptional
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.If you omit it: The form is inserted immediately before the script tag.
data-kapture-titleOptional
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.If you omit it: "Få et uforpligtende tilbud".
data-kapture-max-widthOptional
Maximum width of the form, for example "480px". The container is centred automatically when this is set.If you omit it: The form fills the width of its container.
data-kapture-autoscrollOptional
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.If you omit it: The correction is on.

Handing this to an AI agent? Copy every page of the guide as JSON — same content, in a shape a model can work through.

Updated 2026-09-30 · kapturesignals.com