Actions

QS

Array filter/nl: Difference between revisions

From LimeSurvey Manual

No edit summary
No edit summary
Line 23: Line 23:
'''Filter zetten'''
'''Filter zetten'''


To set a filter, enter the question code of a multiple options question in the array filter box of the question 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 the current question. '''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.
Om een filter te zetten vul je de vraagcode van een vraag met meerdere opties in. Voorbeeld: als de vraagcode "Q1" is, vul dan "Q1" in het veld 'Array filter' of het veld 'Array Filter uitsluiting' in de  '''speciale instellingen''' van de vraag die je wilt filteren. Alleen de in vraag Q1 geselecteerde antwoordopties worden getoond.


<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>

Revision as of 15:20, 9 March 2018


Array filter (array_filter)

Beschrijving

Met een array-filter kun je een meerkeuzevraag gebruiken om te selecteren welke responses getoond worden in een vervolglijst, array of meerkeuzevraag.

De opeenvolgende vragen kunnen gefilterd worden voor elk array vraagtype, inclusief:
  • Meerkeuzevragen
  • Meerkeuzevragen met opmerkingen
  • Meerdere korte vrije teksten
  • Meervoudige numerieke invoer
  • Array (5 punten, 10 punten, Ja/Nee/Weet niet, Meer/Gelijk/Minder, met kolom)
  • Array (Dubbele schaal, teksten, getallen)
  • Rangschikken

Verder kunnen deze vraagtypes worden gefilterd.

De enige uitzondering is Array (met kolom), die kan andere vragen filteren, maar kan niet zelf worden gefilterd.

Filter zetten

Om een filter te zetten vul je de vraagcode van een vraag met meerdere opties in. Voorbeeld: als de vraagcode "Q1" is, vul dan "Q1" in het veld 'Array filter' of het veld 'Array Filter uitsluiting' in de speciale instellingen van de vraag die je wilt filteren. Alleen de in vraag Q1 geselecteerde antwoordopties worden getoond.

If you wish more questions to be filtered via this option, type the question codes in the box separated by semicolons (;).
  The subquestion codes used in the first question must coincide with the subquestion codes from the second one. Otherwise, the array filter function will not filter the answers to the first question. Check the below example to better understand how the whole system works.


Trapsgewijs

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 voorbeeld

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. Technically, the answers you provide to the subquestions from the first question are filtered and displayed in the second question.

This example can be downloaded from the following link: limesurvey_group_32.lsg. Import this question group into your LimeSurvey installation.