Validation is used to ensure that data is correctly formatted and valid before being input into an application.
Different Types of Validation
- Property Type - User can only enter the type of value as defined by the property
- Control - restricts users from entering or selecting invalid values on a form
- Validate – to compare a property against a condition
- Edit Validate – to test single value, value list, and value group properties for patterns
- Required – User must enter a value
There are two types of validation rules: validate and edit validate
Validate Rule:
Validate rule is used to execute a property against the conditions. The data entered by the user will be matched with the condition. if the conditon matches, the user can continue the step else application throw an validation error.
This is Service Side Validation
eg: in DOB, what if user selects the future date
- Validate rule will execute only when the user submit the form.
Edit Validate rule:
- Edit Validate rule is used to check the condition for patterns.
- To work with edit validate rule options, developer should have the knowledge of Java.
Because each edit validate function is a java source code written.
- This is client side validation which executes java code using Ajax Calling.
- Invoke Edit Validate rule from an activity rule using the Property-Validate method
Eg; Contact number