Validation rules and conditions are used to while creating Validations on your application.
Apty provides four Validation conditions for an input field on your application.
Required field
This condition can be used when you want to mandate entering data in an input field on your webpage. For instance, when generating a new lead in Salesforce, it is required to enter your Company's name.
This rule checks whether the field is empty and, if it is, prevents the form or webpage from being submitted and displays the message "This field is required" to the user.
Length constraint
This condition checks whether the input data fits within the range of a specified length. Once the Length constraint is selected, you can specify the minimum length and the maximum length of the input in numbers that must be entered in the field. If the length of the user input is not within the range specified in the validation rule, the input will not be submitted and an error message will be displayed to the end user.

Regular expression
You can use this condition to check whether the user has entered a valid email address by using the following regular expression.
Custom validator
If the input format to be accepted by the spotlight element involves more number of conditions or dependencies with the other fields, then Custom Validator can be chosen. Custom Validator provides a way to write custom JavaScript to validate the input with two arguments (field, context) that provides room for defining specific validation rules.

Note: Once you create a Validation, you can make it accessible for your end users by publishing it either through the Admin Portal or the Apty Studio. For more information, see |
Comments
0 comments
Please sign in to leave a comment.