Alert
A reusable message, title, body, severity and display surface, called by id from anywhere in the project.
An Alert is a reusable notification: a title, a body, a severity and where it surfaces, defined once and raised the same way from any Component, workflow or JavaScript program with call_alert. It keeps a message like "profile saved" or "file not found" consistent everywhere it is shown instead of retyped at every call site.
Properties
alertData
progFields
Optional parameters a caller substitutes into the title or body, the standard virtual field shape, referenced inside alertTitle / alertBody as @field_id.
Calling an Alert
An inline alert skips the reusable program entirely, the alert action carries alertTitle, alertBody, alertType, alertDisplay and createLog directly on the workflow step.
A modal, toast or browser display can surface as a native blocking browser alert() inside a live-preview session, freezing all JavaScript until it is dismissed. Report status through a field instead while testing in preview, and confirm the real display surface in a deployed app.
Worked example
Write the message once
Title, body, severity and surface, on alertData.
Parameterize it
Add a virtual field for anything the caller should fill in, reference it as @field_id inside the body.
Raise it from anywhere
call_alert with this program's id, from a Component's xu-on:click, from a set_data program's after_record, from a Batch step.
Create an Alert node under Programs, fill in title, body, type and display on its Alert tab, add parameters on the Fields grid if the message needs them.