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.
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.
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.
You can use this condition to check whether the user has entered a valid email address by using the following regular expression.
Once the Regular expression validation rule is selected, a regular expression that specifies the format of acceptable input must be given. The specified regex gets applied to the spotlight. Additionally, you can provide an error message to be displayed if the format of input does not correspond to the form specified in the regular expression.
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
Please sign in to leave a comment.