Entry Validation
Last updated
Last updated
(c) 2024 Data Illusion Zumbrunn. All rights reserved. Reproduction strictly forbidden.
Beside checking if a value has been entered in a field you may also setup more advanced rules using regular expression to make sure that the text entered by the respondent matches certain conditions.
You may also set the maximum length of characters allowed to be entered in your field.
Advanced users may also create a custom field based answer type using custom javascript validation to validate the respondent entries.
A regular expression (regex) is a string based search pattern that will check that the text entered by the respondent matches the expression pattern or not.
Using these patterns you check a value using patterns like emails, numbers, zip codes etc ... Almost any field based type can be validated against a regular expression created using the regular expression editor.
To add a regular expression go to the answer properties page and click on the + icon
Regular expressions are only available to the user who created them. If you would like to share your regular expression with all the other ngSurvey users you may turn on its built-in property.
Name
is the display name of the regular expression.
Regular expression
is the actual regular expression pattern that will be used to match the respondent answer .
Error message
error message that will be shown to the respondent if its entry doesn't match the pattern.
Built in
let us share the regular expression with all the other users.
You may find pre-made regular expression and test yours at https://regex101.com/