Validation rules
Configure enrolment form validation rules for required, format, and matching checks.
Validation rules protect data quality at the point of capture. They prevent incomplete or incorrectly formatted values from entering customer profiles and downstream systems.
Choose rules based on the purpose of each field. Strict validation is useful for identifiers. Optional enrichment fields should remain easy to complete.
How validation works
Validation is configured at the individual field level. Each rule checks whether a value meets the data requirements before the form is submitted.
Use a small number of rules that match the field’s purpose. Overly restrictive forms can increase abandonment and create support work.
Available validation rules
Required
Indicates whether the field must be filled out.
For checkboxes and switchboxes, this means the box must be checked.
minLength
Defines the minimum number of characters required for a field's value.
Useful for fields like names or identification numbers.
maxLength
Sets the maximum number of characters allowed in the field.
Helps prevent excessively long inputs that could disrupt layout or storage.
email
Combines two layers of validation:
Regular Expression Check: Uses the following default regex to validate format:
This regex can be overridden with a custom one if needed.
Domain Check via DNS: The Wallet Crew verifies that the email domain accepts mail by checking for MX records.
phone
Validates phone numbers using the react-phone-number-input component.
This is based on Google’s international phone number validation library.
Ensures numbers are correctly formatted and country codes are recognized.
expression
Allows administrators to define a custom regular expression to validate the field.
Flexible option for enforcing format-specific data (e.g., postal codes, IDs).
equality
Compares the field’s value to:
Another field’s value (e.g., "Confirm Password")
A static constant value
Ensures consistency and matching where required.
Configure rules effectively
Start with the minimum needed to identify a customer and issue a pass. Add more rules only when they improve an operational or compliance outcome.
Use
requiredonly for information needed during enrolment.Use
emailandphonefor customer contact identifiers.Use
equalityfor confirmation fields, such as repeated email addresses.Test custom regular expressions with expected and invalid values before publishing.
Validate the form before publishing
Submit the form with representative valid and invalid values. Confirm that required fields block empty submissions, format rules show clear errors, and equality fields reject mismatched values.
Review the result on mobile as well as desktop. Most enrolment journeys begin on a phone after a QR-code scan or campaign link.

