Actions

QS

Array filter/nl: Difference between revisions

From LimeSurvey Manual

No edit summary
(Created page with "Vul de vraagcode van een vraag met meerdere opties in om het te gebruiken als bron bij het instellen van het filter. Voorbeeld: als de vraagcode "Q1" is, vul dan "Q1" in het ...")
Line 23: Line 23:
'''Filter zetten'''
'''Filter zetten'''


Enter the question code of a multiple options question to use as the source information into the setting for array filter. For example, if your source multiple option question code is "Q1" enter "Q1" into either the 'Array Filter' input or the 'Array Filter Exclusion' input in the '''advanced settings''' of the question you want to filterOnly answer options that are selected in question Q1 will be visible in the array_filter-ed question.
Vul de vraagcode van een vraag met meerdere opties in  om het te gebruiken als bron bij het instellen van het filter. 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 filterenAlleen de in vraag Q1 geselecteerde antwoordopties  zijn zichtbaar in de gefilterde vraag.


<div class="simplebox">Starting in 1.92, you can enter multiple array_filter options for a single question, separated by semicolons</div>
<div class="simplebox">Starting in 1.92, you can enter multiple array_filter options for a single question, separated by semicolons</div>

Revision as of 12:31, 23 August 2013


Array filter (array_filter)

Beschrijving

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

Vanaf versie 1.92 kunnen opeenvolgende vragen 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

Vul de vraagcode van een vraag met meerdere opties in om het te gebruiken als bron bij het instellen van het filter. 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 zijn zichtbaar in de gefilterde vraag.

Starting in 1.92, you can enter multiple array_filter options for a single question, separated by semicolons

Array filter question settings require the questions being used to have exactly matching lists of answers. If the questions do not have exactly the same set of answers and codes, then the filters will break.

Starting in 1.92, if Q2 has sub-questions that are not present in Q1, they will always be displayed rather than breaking the filters.

Cascading

The Array filter will cascade – that is you can select a question which filters another question, which filters another question, and so on.

Array filter example

Ticking items ‘One’, ‘Three’ and ‘Four’ in the first question results in the entries 'One', 'Three' and 'Four' displaying in the subsequent question which uses array filter

Multi option question

Code:Q1

Question: Which animals do you like?

1 Cat

2 Dog

3 Zebra

Array 5 Point Choice Question

Code:Q2

Question: Rate these animals on a scale of 1 to 5, where 1 is I like them a little and 5 is I like them a lot

Array filter example 2 - Using Multiple Short Text

Note: This features is available starting in version 1.92

Here is the Limesurvey Group file for the above demo

limesurvey_group_32.lsg

Array filter example 3 - Cascading Array Filters

This sample survey shows use of array_filter, array_filter_exclude, and exclude_all_others, plus cascading array filters.

ls2_cascading_array_filter.lss