Validation Filters

Validation filters are used to validate the responses on a page for a question that cannot be handled with the SurveyWriter's built-in  functions. This option is generally used when multiple questions are merged onto a single page, and one question's valid answers depends upon its relationship to answers from another question(s) on the same page. 

In the following example, a grid question lists ten TV shows and asks respondents to rank their top three favorites. Also displayed is an option that reads "I do not watch television." Since a grid question would not allow for a single response question (such as a radio button or check box that reads "I don't watch Television"), you would need to create two questions and merge them to a single page. The first question is the "Ranking Grid" question, and the second question is a multiple selection check box labeled, "I don't watch television."  

Normally, the answers to one question on a page are not validated against the answers to another question on the page. Using the Validation Filters, you could set up a series of rules that would alert the respondent that there is an error if they had answered the "Ranking Grid" question and answered "I don't watch TV".   

One of the complications with using this function is that since you are creating your own rules, you must do error trapping to catch other possible respondent errors such as:   

In this example, a ranking question is created. Next, a row question is created that contains validation filters. Finally, the two questions are merged onto the same page.

Create Ranking Question

  1. Click Select a Question Type>Answer Grid>Ranking Text Boxes from the Question menu.
  2. Create your question text and row and column labels using Set Question Text and Set Answer Options. For the column labels, enter :: (two colons) to indicate that no column labels are needed for a ranking question. Make sure to enter a minimum and maximum numeric rank range (1, 3) on the Question Options screen.

  1. Save this question. 

Create Validation Question

  1. Select Select a Question Type>Standard Questions>Multiple Select Check Boxes from the Question menu.
  2. Save the Question Options screen.
  3. Do not enter any question text.
  4. Enter only one answer option using Set Answer Options. Click Add Codes Ascending to assign a value to the response option.

 

 

  1. Save the answer options.
  2. Click Modify Options from the main Question screen.
  3. Click the Create Validation Filter for this Question box on the Questions Options window.
  4. Click Build Validation Filter. 

Note: You can enter text directly into the field. Using the Filter Wizard is recommended, however, to eliminate typing errors.

  1. Select the question to use to build the filter.
  2. Select the conditional operator to compare against the response option. 

To handle all the possible validation rules, the filter wizard contains Conditional Operators. Several of these operators, the ones with additional explanation next to them, are available in the Filter Wizard for Validation Filters only


= Equals
< Less than
> Greater than
! Does not equal
[] Containing
[ Beginning with
] Ending with
[NB] Not blank
[B] Blank
[L] Length
[GNB] Grid not blank Checks to see if any answers in a grid row, grid column or an entire grid have been answered. 
[MAX] Maximum answer Checks for the Maximum answer in a grid row, grid column or an entire grid. 
[MIN] Minimum answer Checks for the Minimum answer in a grid row, grid column or an entire grid. 
[RN] Rank n Items Checks to see that only n items have been ranked in a ranking question (for example rank your TOP 3 favorites) 
[D] Duplicate answers Checks to see if there are duplicate answers in a ranking columns (for example 2 items have been ranked 1st)

  1. Select a response option for the selected question. In this example, the filter checks to ensure that the respondent has not ranked an item and then selected, "I don't watch television."

  1. Click Save to store the filter.
  2. Enter the message text to display for this filter in the space provided. This text is displayed if the filter results in TRUE.
  3. Repeat steps 8 through 13 for the remaining validation filters. Several validation filter examples are displayed as follows. Refer to the table above for an explanation of the conditional operator.

  1. Save the question.

 

Merge Questions

The Merge Question type allows you to take existing questions and place them all on the same page. All attributes and functions still apply to the individual questions. You can easily place as many questions on a single page as you need.

When you are merging questions, the Merge question must always follow the questions you are merging. For example, if you are merging Q1 and Q2 to the same page, set up the Merge question, Q3, after you have created Q1 and Q2.

  1. Click Select a Question Type>Merge Questions> Select Questions to Merge.

  1. Hold the CTRL button down and click on the questions to merge.
  2. Select the number of line spaces to have between questions.
  3. Click Save.