StableEvent
On submit
Overview
Fires when a form is submitted and its inputs pass validation.
Purpose
Decide what happens with the form's values: create or update a record, call an API, send an email. If no actions are attached, the Form saves to its entity automatically.
Inputs
- Supported by: Form, Comments, Chat.
Configuration
- Attach a Create record (or Update record) action with Use values from the surrounding form ticked.
- If any action fails, the form shows the error (field errors land under the matching input) and On error fires.
- Use On success for what comes after (message, navigation, reset) so it only runs when saving worked.
Outputs
Form › <name>— every input value by name; in templates{{form.name}}.- Results of the actions (for example the created record as last result) are passed to On success as
Event › ….
Example
Booking form
Example
Form › On submit: 1. Create record Bookings (Use values from the surrounding form) 2. Send email To: Form › email · Subject: Booking received
Errors
- Validation errors (required, min/max, pattern) stop the submission before the event fires; the first invalid input is focused.
Limitations
- When On submit has actions, the Form's own entity save is skipped — include the Create record action yourself.