Using regex in validation
In Aliveforms, text input can use regex for validations.
Setup
Add a input screen with type text
Set text input options
- In Text input option, select custom regex
- In regex textbox, type pattern
- In invalid message text box, type the message you want to display on wrong input.
Example
We want user to enter
abc-123-123
type this in regex.
[a-zA-Z]{3}-[0-9]{3}-[0-9]{3}
and set invalid message
Please enter in format abc-123-123
Note
It is recommeneded to use "Required" parameter when using custom regex.