Jump to content

On Change: Difference between revisions

From Resco's Wiki
Marek Rodak (talk | contribs)
Created page with "==On Change rule== The On Change rules are checked when any field is modified. Rules are client-side scripts that are executed when a user of the mobile app interacts with th..."
 
Marek Rodak (talk | contribs)
No edit summary
Line 1: Line 1:
{{WIP}}
==On Change rule==
==On Change rule==



Revision as of 08:32, 18 July 2022

Warning Work in progress! We are in the process of updating the information on this page. Subject to change.

On Change rule

The On Change rules are checked when any field is modified. 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 Change rules are available for the following user interface components:

  • Forms
  • Editable views
  • Questionnaires
  • Schedule Board

IsLoaded

IsLoaded is a variable, property which checks whether the form or questionnaire is fully loaded and visible on the screen, with all the values assigned. For example, you can use it to differentiate between the initial loading of a form and manual user change.

IsLoaded Equals True

Forms

On change rule on form usually serves as a simple field validation.

Execution
  • When you modify any field.
  • When form is loaded (a new form starts empty, then the values are changed as they are loaded from the database and displayed).
  • When an associated/related record is created or modified - it has to be set up in the properties of an associated list. Open Properties of associated list and in Properties section check Trigger OnChange event option.
  • Setting a value inside the On Change rule for a field placed on the form triggers the On Change rule again.


Form Examples

Example - Postal code validation

When a user enters information into a field, you may want to verify that the format is correct. For example, postal code filed validation based on expected format.