embed.js renders interactive widget types and injects the required widget styles. Standard in-page embeds use a direct iframe instead.
Common setup
Every JavaScript widget requires:
- A single configuration object at
window.onlyform.
- A mount element with
id="app".
- The module script loaded after the configuration and mount element.
The current loader uses one global configuration and one #app mount. Install one embed.js widget per page. If your application already uses id="app", use a standard iframe to avoid a mount-point conflict.
Full page
Use fullPage when the form should fill the browser viewport:
A popup needs a trigger button. The button’s data-embed-id must match the configured form ID.
popupSize accepts small, medium, or large.
Slider
The slider also uses a matching trigger button and can enter from either side:
position accepts left or right.
Popover
The popover supplies its own floating launcher:
Omit greetingMessage to show only the launcher.
Side tab
The side-tab widget supplies a persistent launcher and sliding panel:
See Widget options for the complete configuration matrix and Custom domains before changing widget hostnames.