- 29 Jul 2022
- 1 Minute to read
- Print
- DarkLight
About Form Validation and Visibility
- Updated on 29 Jul 2022
- 1 Minute to read
- Print
- DarkLight
Overview
Within Decisions, Flows and Rules can be leveraged to provide additional dynamic behaviors on a form. They can be used to validate user input as it is being entered on the form or be used to hide and show additional controls.
About Validation
One of the most common requirements of an application is to validate form inputs before accepting them. By assigning flows or rules to forms, the system can validate form data before exiting the form, preventing users from entering invalid information in an application.
For example, data entered in the email address field should be in the proper format. A validation flow/rule assigned to the email address field can check the format. If the format is invalid, an error displays when the user attempts to submit the form, and the error must be corrected before the form can be submitted.
The following articles show tutorials on Validating Form Data.
Validating Form Data with a Rule
Validating Form Data with a Flow
About Visibility
Form controls can be used to manage visibility and enable or disable other controls by applying Visibility Rules.
For example, applying a Visibility Rule to a checkbox can hide a portion of the form that may not be relevant to the user. Also, if a Visibility Rule is applied to a control and the rule evaluates as true it can enable or disable another control on the form.
The following articles show tutorials on using Visibility Rules.
Controlling Form Fields with Visibility Rules