StableAction
Open modal page
Overview
Shows a modal page (a dialog in the middle of the screen) on top of the current page, for example a “New booking” form.
Purpose
Modals keep people on the page they were working on. Use them for quick forms, confirmations and details that do not need a full page. The content is a page whose type is Modal, so you design it like any other page.
Inputs
- Page — a page of type Modal (if there is none yet, create one under Pages).
- Page parameters — when the modal page has route parameters (such as
:id), fill them from the current record, the event or state. Values are passed as text.
Configuration
- Create the modal page first (Pages → Add page → Modal), build its content, then point the action at it.
- Add a Close modal action to the modal's own buttons (for example after a form's On success).
- Opening a second modal stacks it on top of the first; Close modal always closes the top one.
Outputs
- None. Inside the modal, the parameters are available as
Page parameters.
Example
Edit a job from a table row
Example
On row click:
1. Open modal page
Page: Edit job (modal, /jobs/:id/edit)
Page parameters: id = Event › idErrors
- If the chosen page was deleted, the publish checklist reports a broken reference and the action does nothing at runtime.
Limitations
- Modals are not addressable by URL — refreshing the browser closes them.
- Modal pages still respect Requires sign-in and allowed roles; an unauthorised user sees the access-denied content inside the modal.
Advanced
- Schema:
{ type: "open_modal", pageId, params? }. The runtime pushes{ kind: "modal", pageId, params }onto the overlay stack; params are stringified.