You can use the “Validation” section to control what values your survey will accept. You can use validation to make sure that participants fill out the required fields. Question validation can also ensure that responses are entered in the correct format.
For example, you can add validation to make sure that participants can only enter a date in the Birthday field. Survey questions do not include validation by default. However, you can add validation to any question needed.
Required Error Text
You can choose to make important questions required. Participants will receive an error message if they don’t answer required questions. The default error message will say “Please answer the question.” Users can override the default error message with their own customized message.
-
- Use the “Toolbox” to create your survey question
- Go to the “Properties” panel
- Go to the “General section” and toggle “is required” to ON
- Scroll down to the “Validation” section
- Enter your preferred error text in the “Required error text” field
Validators
Validators allow you to create custom expressions to compare the entered data against. You can add further validators based on the type of question. Validators can block survey submissions until the response is correct.
For example, you may want to know your participant’s height in feet and inches. There are only 12 inches in 1 foot, so you can’t have 13 or more inches. You can add a “max validator” so participants can’t type in 13 or more inches. You can add a customized error text in the “Text” field as well to instruct participants on how to fill out that field.
Example: Adding Email Validation
- Use the “Toolbox” to add a Single Input question
- Navigate to the “Properties” panel
- Scroll down to the “Validation” section
- Choose the “+” icon under “Validators”
- Select “Email”. This will make sure that the participant can only enter an email address in this field
- In the “Text” field you can enter custom text that will display if the entered response is not a valid email address.
Comments
Please sign in to leave a comment.