Validation
Ensure data integrity with input validation
Input Validation in ProcessZen
Input validation helps maintain data integrity by ensuring that user inputs meet specific criteria before proceeding in the workflow.
Adding Validation Rules
To add validation to an input field:
- Click on the gear icon right next to the input field
Types of Validation
-
Type Validation
- Email: Ensures the input is a valid email address
- Number: Allows only numeric input
- Date: Ensures the input is a valid date
-
Length Validation
- Min length: Sets the minimum number of characters required
- Max length: Sets the maximum number of characters allowed
-
Custom Validation
- Regex: Use custom regular expressions for specific validation needs
Example Validation Rules
-
Email validation:
- Type: Email
-
Phone number validation:
- Type: Number
- Min length: 10
- Max length: 15
-
Custom Regex validation:
Regex (Regular Expression) is a powerful tool for pattern matching and text manipulation. It allows you to define complex search patterns for validating or extracting information from strings.
Here are some common regex patterns:
Creating regex patterns can be complex, but tools like the Regex Generator can help you build and test regex patterns easily.
Use these patterns in the “Regex” type validation to enforce specific input formats in your workflows.
By implementing proper validation, you can improve data quality and reduce errors in your workflows.