StableAction
Reset form
Overview
Clears all inputs and error messages of the surrounding form.
Purpose
Use it after a successful submission when the form should be ready for the next entry, or on a “Clear” button.
Inputs
- No settings — it resets the form the action belongs to (the form around the button, or the form itself on its own events).
Configuration
- Forms have a Clear after submit option that does the same thing automatically for create forms; use this action when you need control over when it happens.
Outputs
- None.
Example
Clear after saving
Example
Form › On success: 1. Show message “Saved” 2. Reset form
Errors
- None. Outside a form it does nothing.
Limitations
- Resets to empty values, not to the inputs' default values, and does not reload an edit form's record.
Advanced
- Schema:
{ type: "reset_form", formId? }. Sets__resetin the form's component state; the Form renderer clears its values and errors when it changes.