Why Field Validator?
Prevent Bad Data
Stop tickets from being saved when field values do not match your rules.
Regex Powered
Use JavaScript regex patterns to validate emails, IDs, numbers, IBAN, and more.
Validates on Save
Validation runs when agents save or submit a ticket. No workflow changes required.
Multilingual Messages
Show localized error messages depending on the agent language, with fallback to English.
Example Use Cases
- Require valid customer email
- Ensure invoice numbers follow a strict company format
- Validate IBAN or bank account fields
- Allow only numeric customer IDs
- Enforce internal ticket codes like SUP-123
Example Validation Rules
Need help building regex? regex101 or RegExr
Email Address
^[^\s@]+@[^\s@]+\.[^\s@]+$
Valid: john@company.com
Invalid: john@company , john@@company.com
IBAN
^[A-Z]{2}[0-9]{2}[A-Z0-9]{11,30}$
Valid: CH9300762011623852957
Invalid: CH93-0076 , 9300
Price (decimal)
^\d+(\.\d{1,2})?$
Valid: 10 , 19.90
Invalid: 19,90 , CHF 10 , 10.999
Customer Number
^[0-9]{4,10}$
Valid: 482913
Invalid: CUST-123 , 12A34
Internal Ticket Code
^[A-Z]{3}-[0-9]{3,6}$
Valid: SUP-123 , DEV-48291
Invalid: sup-123 , SUP123
European Date
^\d{2}\.\d{2}\.\d{4}$
Valid: 31.12.2026
Invalid: 2026-12-31 , 31/12/2026
Phone Number
^\+?[0-9\s\-]{7,15}$
Valid: +41 79 123 45 67
Invalid: Phone123 , ++41
ZIP / Postal Code
^[0-9]{4,6}$
Valid: 8001 , 10115
Invalid: CH-8001 , 80A1
Configuration
Paste your rules into the rulesJson setting in Zendesk:
[
{
"fieldId": "33604067489298",
"regexPattern": "^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$",
"errorMessage": {
"en": "Please enter a valid email address",
"de": "Bitte eine gültige E-Mail-Adresse eingeben"
}
},
{
"fieldId": "33604039829010",
"regexPattern": "^[A-Z]{2}[0-9]{2}[A-Z0-9]{11,30}$",
"errorMessage": {
"en": "Please enter a valid IBAN (e.g. CH9300762011623852957)",
"de": "Bitte eine gültige IBAN eingeben (z.B. CH9300762011623852957)"
}
},
{
"fieldId": "33604056649874",
"regexPattern": "^\\d+(\\.\\d{1,2})?$",
"errorMessage": {
"en": "Please enter a valid price (e.g. 10 or 10.50)",
"de": "Bitte einen gültigen Preis eingeben (z.B. 10 oder 10.50)"
}
}
]
Validation happens on ticket save. Empty fields are ignored unless required by Zendesk.
About
Built by Zencraft Labs. Designed for teams that need consistent, structured Zendesk ticket data.