Embedding
Signing Form JavaScript
Embed the SealRoute signing experience with the <sealroute-form> web component.
Requires an active license. Cross-origin parent pages must be listed in EMBED_ALLOWED_ORIGINS.
Example Code
Code
Use either:
/d/{slug}— template form URL (from the template page or/api/templates)/s/{slug}or theembed_srcfrom/api/submissions— individual signer URL
Attributes
| Attribute | Required | Description |
|---|---|---|
data-src | Yes | Signing form URL (/d/... or /s/...) |
data-height | No | Initial iframe min-height in px (default 800) |
Events
| Event | Description |
|---|---|
init | Form iframe loaded |
completed | Signer finished; detail is the completion payload |
declined | Signer declined |
requires_top_level | Step needs a top-level window (2FA / VIDA); opens a new tab |
Events are also available as postMessage types with the sealroute: prefix (sealroute:completed, etc.).
Last modified on