Field Validation
Learn how field validation works in GenZform to ensure users enter data in the correct format.
Field validation ensures users enter data in the correct format before submitting. Most validations are handled automatically by the system based on the field type, while number validation can be configured by you or the AI.
System Validations (Automatic)
These validations are built into the system and applied automatically based on the field type. They cannot be modified by the AI or manually.
| Validation | Applied To | What It Checks |
|---|---|---|
| Email format | Email fields | Valid email structure (e.g., [email protected]) |
| Phone format | Phone fields | Valid phone number format |
| Required field | Any field marked required | Ensures the field is not empty |
Number Validation (Configurable)
Number validation is the only validation that can be added or modified by the AI or by the user manually. You can set minimum and maximum value ranges for number fields.
Example AI prompts:
- "Only allow numbers between 1 and 100"
- "Set minimum age to 18 and maximum to 120"
- "Add a number range of 0 to 1000 for the budget field"
Validation Timing
Validation occurs when the user navigates to the next page or submits the form. On-blur validation (when leaving a field) and real-time validation (as user types) are not currently supported.
Frequently Asked Questions
When does validation occur?
Validation occurs when the user moves to the next page or submits the form. On-blur and real-time validation are not currently supported.
Can I add custom validations like regex patterns?
No. Only number range validation can be configured. All other validations (email, phone, required) are predefined by the system and applied automatically based on the field type.
Can I customize validation error messages?
Custom validation error messages are not currently supported. The system displays standard error messages.