Catalog
1. Validation Rules
Validation rules are used to validate the content of field or form input. After configuring validation rules, when a user submits a form, the system will check the input content according to the rules; if it does not meet the requirements, the system will display an error message and prevent submission.Validation rules are usually written using regular expressions. Regular expressions can be used to determine whether input content conforms to a specified format, such as email, phone number, IP address, number, etc.
The system has some built-in commonly used validation rules, including: required, unique, date, email, number, phone number, and IP.
If the built-in rules cannot meet business needs, designers can add custom validation rules.
2. Maintaining Validation Rules
Designers can maintain validation rules on the "Module - Validation Rules" page.After clicking the "Add Rule" button, fill in the rule name and regular expression. After saving, the rule can be referenced in the field or form configuration.