Array filter: Difference between revisions
From LimeSurvey Manual
mNo edit summary |
mNo edit summary |
||
Line 10: | Line 10: | ||
<!--T:24--> | <!--T:24--> | ||
The Array filter setting allows you to use any multiple choice question to select or set which responses | The Array filter setting allows you to use any multiple choice question to select or set which responses are displayed in a subsequent list, array or multiple choice question. | ||
<!--T:25--> | <!--T:25--> | ||
Line 26: | Line 26: | ||
<!--T:27--> | <!--T:27--> | ||
The only exception is Array (Column), which can filter other questions, but | The only exception is ''Array (Column)'', which can filter other questions, but not itself.</div> | ||
<!--T:28--> | <!--T:28--> | ||
Line 32: | Line 32: | ||
<!--T:29--> | <!--T:29--> | ||
To set a filter, enter the question code of a multiple options question in the array filter box. | To set a filter, enter the question code of a multiple options question in the array filter box you are currently editing. The respective question will be used as the source of information for the current question, the selected answers from the previous question being retrieved and used as answer options. '''For example''', if your source multiple option question code is "Q1", enter "Q1" into the 'Array Filter' box to start the filtering process of the answers. Only the answer options that are selected in question Q1 will be visible in the array_filter-ed question. | ||
<div class="simplebox">If you wish more questions to be filtered via this option, type the question codes in the box separated by semicolons (;). </div> | <div class="simplebox">If you wish more questions to be filtered via this option, type the question codes in the box separated by semicolons (;). </div> | ||
Line 45: | Line 45: | ||
'''Array filter example''' | '''Array filter example''' | ||
Let's take at the following example to better understand the power of this setting: | Let's take a look at the following example to better understand the power of this setting: | ||
<!--T:48--> | <!--T:48--> | ||
[[File:array_filter_with_multipe_short_text.jpg]] | [[File:array_filter_with_multipe_short_text.jpg]] | ||
In the screenshot from above, we got two questions. The first one is a ''multiple short text'' question type, while the second one is an ''array dual scale'' question type. The answers you provide in the first | In the screenshot from above, we got two questions. The first one is a ''multiple short text'' question type, while the second one is an ''array dual scale'' question type. The answers you provide in the first question will be listed in the second one. | ||
This example can be downloaded from the following link: [[Media:limesurvey_group_32.lsg|limesurvey_group_32.lsg]]. Then, import this question group into your LimeSurvey installation. | |||
</onlyinclude> | </onlyinclude> | ||
Revision as of 16:08, 19 February 2018
Array filter (array_filter)
Description
The Array filter setting allows you to use any multiple choice question to select or set which responses are displayed in a subsequent list, array or multiple choice question.
- Multiple choice
- Multiple choice with comments
- Multiple short text
- Multiple numeric
- Array (5 point, 10 point, Yes/No/Unknown, Increase/Same/Decrease, Column)
- Array (Dual Scale, Text, Numbers)
- Ranking
Furthermore, each of these types of questions can be filtered.
The only exception is Array (Column), which can filter other questions, but not itself.How to set a filter
To set a filter, enter the question code of a multiple options question in the array filter box you are currently editing. The respective question will be used as the source of information for the current question, the selected answers from the previous question being retrieved and used as answer options. For example, if your source multiple option question code is "Q1", enter "Q1" into the 'Array Filter' box to start the filtering process of the answers. Only the answer options that are selected in question Q1 will be visible in the array_filter-ed question.
Cascading
The selected options can be displayed in cascade. This means that you can select a question which filters another question, which filters another question, and so on.
Array filter example
Let's take a look at the following example to better understand the power of this setting:
In the screenshot from above, we got two questions. The first one is a multiple short text question type, while the second one is an array dual scale question type. The answers you provide in the first question will be listed in the second one.
This example can be downloaded from the following link: limesurvey_group_32.lsg. Then, import this question group into your LimeSurvey installation.