While developing forms in OHRI, we use JSON to accomplish this. JSON is "self-describing" and easy to understand. Here, we shall look at the basic JSON syntax, their meanings and use case and a detail of the validations we add to OHRI forms the form engine to improve form behaviour.
...
Expressions are used to add validations and behaviours to OHRI formsthe form engine. We have two expressions while adding validations to questions/fields in OHRI forms the form engine i.e. hideWhenExpression
is used to hide questions/fields and the failsWhenExpression
added as part of the form validators for any questions that should throw an error within the form to avoid it from saving if the expressions are not met rightly usually used for dates.
...
Below are selected scenarios to give a gist of how behaviours are used in OHRI forms the engine and can be used as a guide to achieve desired behaviours for specific questions within the said forms.
...