StableEvent
On success
Overview
Fires after a form or login form completed successfully.
Purpose
Everything that should happen only when saving or signing in worked: confirmation messages, closing the modal, navigating to the new record, resetting the form.
Inputs
- Supported by: Form, Login Form.
Configuration
- Keep the save in On submit (or the form's entity) and the follow-up here; On success does not run when On submit fails.
Outputs
- Form without On submit actions:
Event › record— the saved record ({{event.record.id}}). - Form with On submit actions: the action results of On submit (
Event › last,Event › <result key>). - Login Form: no event data; the current user is already updated.
Form › <name>values are still available.
Example
Go to the new customer
Example
Form › On success:
1. Show message “Customer created”
2. Go to page Customer detail
Page parameters: id = Event › id (template: {{event.record.id}})Errors
- None specific.
Limitations
- The Login Form navigates to its configured page after On success finishes.