On Save
| Rules and examples |
|---|
|
| Warning | Work in progress! We are in the process of updating the information on this page. Subject to change. |
The On Save rules are checked when you save a record. Rules are client-side scripts that are executed when a user of the mobile app interacts with the app. Rules are no-code business logic, which are managed using the rules editor, usually in Woodford.
On Save rules are available for the following user interface components:
- Forms
- Editable views
- Questionnaires
- Process of On Save execution
- User initiate saving process.
- On Save rules are executed.
- Validation of whether the record can be saved (rules may interrupt save).
- If valid, the record is saved.
Forms
On Save rule on forms usually serves as a final field validation or they can automate changes in related records.
- Rule execution
- When you save a record.
Views
On Save rules can be used with views, but only when the Editable field is set. (Editable field, list, or editable grid is a feature that allows users to edit one or more records directly from the view, without a need to go to the form of a record.)
Questionnaires
In inspections, there are two options when to execute On Save rules.
- Rule execution
- When you save the questionnaire
- When you complete the questionnaire
This behavior is configured on the questionnaire level, in the Validate On property.