With extraction you can make sure that subsequent questions only show certain options that your respondents have marked in a previous question. This way respondents will only see the answer options that matter to them.
Apply extraction
First create your source question (the question you are going to base yourself on) and your target question (the question that will only show the options marked in the source question). Make sure both questions are on separate pages. Also make sure that the answer options are in exactly the same order. These answer options do not need to have the same wording, though.
- Click on the icon
next to the target question and click Edit.
- Go to the Settings tab.
- Here you will see the option Extraction based on.
- Select the correct source question in the drop-down menu and click on Save.
To illustrate
Below you can find an example of what extraction looks like for your respondents. We also have a short extraction demo available on our website.
It is also possible to apply extraction to a question that is asked a few questions later. The source and target question do not necessarily need to be subsequent questions. As long as the questions are on separate pages and the options are in the same order, extraction is possible.
Extraction from a matrix question
The extraction dropdown menu will not contain matrix (table) questions, as there are too many possibilities to extract from.
Do you want to show only the sub-questions that received a positive evaluation? Or a negative one? If your question is about usage, as of how often something is used, must the item be shown? Once per week? Every day?
When you want to extract from a matrix you will have to use question display logic to hide the items that do not match your requirements.
Example
Let’s say your source question (i.e. the matrix question) is about how often people consume certain products:

And your follow-up question only concerns the products that people consume at least weekly.

In that case it makes no sense asking this question about the products where people ticked ‘Monthly’, ‘Less than monthly’ or ‘Never’. In other words, must hide these products if columns 3, 4 or 5 were selected for the corresponding sub-questions in the matrix.
You do this as follows:
- Create your source and target questions
- Add a question data label, preferably to both questions, but at the very least to the source question. You will need it later for the CSL code.
- Edit the target question and go to the Display logic tab.
- Set each response option to Hide if.
- Now add the following CSL code:
- Replace [LABEL] by your source question’s data label.
- Replace x by the number corresponding to the order of the sub-question. If it’s the first sub-question you’re referring to, use ‘1’, if it’s the second sub-question, use ‘2’, etc.
- Click on Save.
The code states that if the column number (indicated by ‘orderNumber’) is greater than (‘gt’) 2, i.e. if columns 3, 4 or 5 have been selected, then this response must be hidden from the respondents.
Other examples
The same syntax can be used in rating scale type matrix questions, e.g. when respondents must select a score lower than a certain number.
Or, of course, you can do the opposite, and a higher score (i.e. column) must be selected. In that case you don’t use ‘greater than’ as a hide if condition, but ‘less than’, which is the operator ‘lt’.
If it’s just one answer that will cause for an option to be hidden, then use the ‘equal to’ operator, or ‘eq’:
Don’t forget about branching or page display logic
It is always possible that someone does not select ANY of the required options in the source question. For regular questions, this will be the case when you add a ‘None of the above’ option. For matrix questions, the possibilities are – again – legion.
If that possibility is real, make sure to add either branching or page display logic so that the respondents don’t receive an empty follow-up question.
To make sure you’ve got all options covered, test the survey thoroughly.
Comments
0 comments
Please sign in to leave a comment.