How To: Filter Answers By Answers
The following steps will introduce you to the ‘Filter Answer by Answers’ method which is built within our function libraries.
Using this function, you can filter a questions answers according to an-other question’s answers, making the questions answers adjust according to your needs.
For example, let’s say we have the following ‘Multi-Selection’ questions with the same scale of answers:
1. ‘Which of the following brands are familiar to you?’
2. ‘Which of the following brands did you purchase in the past year?’
3. ‘Which of the following brands did you purchase in the last month?’
We will need that answers which were not chosen in question 1 will not appear in question 2.
Answers which were not chosen in question 1 and question 2 will not appear in question 3.
Filtering Answers By Answers:
Let’s create a few multi-selection questions:
Just for this example, we can use the same answer scale in all of them:
Now we can choose the answers and configure them to be the only ones that will show on the next question:
By adding the following start script to the question we want to filter its answers:
The function will filter question 39’s answers by the answers that were chosen in question 38:
If we want to do the opposite – show answers that were NOT chosen, we can add the following start script to the question we want to filter its answers:
FilterAnswersByAnswers(39, false, QRef(38));
*Notice: Changing the value from false to true is the same like the default function we saw previously.
For example, the answers that are chosen in question 38:
Will be hidden in question 39:
That’s it! This is an introduction of how to use ‘Filter Answers By Answers’ function!
Visit us at: http://www.dooblo.net