Using validation in surveys

Using validation in surveys

Why use validation?

Validation helps you collect good quality data. You can set limits on the answers to number questions, so a respondent cannot enter an impossible answer. You can also check an answer against answers to other questions.

Catching errors when data is entered makes checking and cleaning your data much faster.

Simple validation

Simple validation sets a range of numbers that you accept for a number question.
  1. Open the question's Edit window. Under Validation, click +Add Validation (Image 1).
  2. Under Validate answer, select Value is in range (Image 2).
  3. Enter the lowest and highest values you accept. Then enter an error message to show if the answer is outside the range (Image 3).
  4. Click Save.
For example, a household should have between 1 and 30 people. Always add an error message, so the enumerator knows what values are allowed (Image 4).
Image 1
Image 1
Image 2
Image 2
Image 3
Image 3
Image 4
Image 4

Advanced validation

Sometimes you want to check an answer against answers to other questions. For example, the number of people in a household should equal the number of men plus the number of women.
  1. In the question's Edit window, click + Add Advanced Validation. A new Condition box appears (Image 5).
  2. Click Select... and pick the question you are checking, here "How many people live in this household?" (Image 6).
  3. Click is to choose an operator, such as is not, is greater than or is between (Image 7).
  4. Click Select... again and pick "How many men live in this household?". Hover over it and click +, then select "How many women live in this household?".
  5. Under Message to show if condition is false, enter the message the enumerator will see (Image 8).
  6. Click Save.
The condition must be true for the answer to be accepted. You can add more than one advanced validation to a question.
Image 5
Image 5
Image 6
Image 6
Image 7
Image 7
Image 8
Image 8
Test your validation
Go to the Preview tab and open the Interactive Preview. Enter answers that break the rule and click Next. The question is outlined in red and your message appears below it (Image 9).

Fix the answers and check that the message goes away before you deploy the survey.
Image 9
Image 9