Skip to main content
Configuration is split in two. Script attributes control the shell: how the widget looks and where it sits on the page. Practice settings, held server-side and fetched at load, control what it offers.

Script attributes

Auto-init runs on load. With data-token or data-api-url missing, it exits without rendering.

Programmatic use

The bundle exposes a run(config) function for hosts that need more than the attributes give: an inline mount, a location callback, or an origin the host is still resolving.

Practice settings

These come from the server at load, set by an admin in Settings → Scheduling Widget. You cannot override them from the page. A website should not be able to widen what a practice offers.

Session behaviour

An in-progress booking is kept in sessionStorage only, so an accidental reload mid-flow resumes. It dies with the tab, is bounded by a 30-minute server-side session, and is re-validated on booking. Nothing the patient typed is retained afterwards. Booking links get opened on shared phones, family tablets, and waiting-room devices, and a form pre-filled with the previous person’s name and number is a worse trade than making a returning patient type theirs again.