Actions

QS

Array filter exclude/nl: Difference between revisions

From LimeSurvey Manual

No edit summary
(Updating to match new version of source page)
Line 6: Line 6:
'''Beschrijving'''
'''Beschrijving'''


Met een array uitsluit filter kun je een meerkeuzevraag gebruiken om te selecteren welke responses '''niet''' getoond worden in een vervolglijst, array of meerkeuzevraag.
The '''Array filter exclusion''' setting allows you to use any multiple choice question to select or set which responses are '''NOT''' displayed in a subsequent list, array or multiple choice question.


<div class="simplebox">Vanaf versie 1.92 kunnen opeenvolgende vragen  gefilterd worden voor elk array vraagtype, inclusief:
<div class="simplebox">The subsequent questions can be filtered on any array question type, including:
*Meerkeuzevragen
*Multiple choice
*Meerkeuzevragen met opmerkingen
*Multiple choice with comments
*Meerdere korte vrije teksten
*Multiple short text
*Meervoudige numerieke invoer
*Multiple numeric
*Array (5 punten, 10 punten, Ja/Nee/Weet niet, Meer/Gelijk/Minder, met kolom)
*Array (5 point, 10 point, Yes/No/Unknown, Increase/Same/Decrease, Column)
*Array (Dubbele schaal, teksten, getallen)
*Array (Dual Scale, Text, Numbers)
*Rangschikken
*Ranking


Verder kunnen deze vraagtypes worden gefilterd.
Verder kunnen deze vraagtypes worden gefilterd.


De enige uitzondering is Array (met kolom), die kan andere vragen filteren, maar kan niet zelf worden gefilterd.</div>
The only exception is ''Array (Column)'', which can filter other questions, but can not itself be filtered.</div>


'''Filter zetten'''
'''How to set it up'''


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 uitsluiting' in de speciale instellingen van de vraag die je wilt filteren.
Enter the question code of a multiple options question in the '''array exclusion 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 non-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 exclusion filter' box to start the filtering process of the answers. Only the answer options that are '''NOT''' selected in question Q1 will be visible in your question.


<div class="simplebox">Vanaf versie 1.92, kun je meerdere array_filter_exclude opties gebruiken bij een vraag. Gebruik dan een puntkomma om ze te scheiden</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>


Bij het instellen van een filter is het verplicht dat de gebruikte vragen precies dezelfde antwoordenlijst en subvragen hebben. Uw vraag zal dan alleen die antwoorden/subvragen tonen die niet geselecteerd zijn.
{{Alert|Title=Attention|text=The subquestion codes used in the first question must coincide with the subquestion codes from the second one. Otherwise, the '''array exclusion filter function''' will not filter the answers to the first question. Check the below example to better understand how the whole system works.}}
 
Als de vragen niet dezelfde set van antwoorden/subvragen  en codes hebben, zal het filteren niet lukken.
 
<div class="simplebox">Vanaf versie 1.92, als Q2 subvragen heeft, die ontbreken in Q1, dan worden deze altijd getoond.</div>


'''Trapsgewijs'''
'''Trapsgewijs'''


Een Array uitsluit filter werkt trapsgewijs; je kunt een vraag selecteren die een andere vraag filtert, die een andere vraag filtert, enz.
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.


'''Voorbeeld'''
'''Voorbeeld'''


Aanvinken van items: ‘Een’ en ‘Drie’ in de eerste vraag betekent dat die niet getoond worden in de volgende vraag als die een array uitsluitfilter gebruikt
Let's see together the below example:
 
Vraag met meerdere keuzes
 
Code:Q1
 
Vraag: Welke dieren vind je leuk?


1 Kat


2 Hond
<center>[[File:Example_array_filter_exclude.png]]</center>


3 Zebra


Array 5 Punten
In the screenshot from above, we got two questions. The first one is a ''multiple choice'' question type, while the second one is a ''multiple choice with comments'' question type. The answers you provide in the first question will be excluded from the second one. For example, if you select the ComfortUpdate option (that has the subquestion code 'SQ1'), the 'SQ1' subquestion correspondent from the second question will be excluded. In our screenshot, we can observe that only Plugins (with 'SQ4') remained unselected in the first question and displayed in the second one.


This example can be downloaded from the following link: [[Media:Limesurvey_group_array_filter_exclude.lsg.zip|Limesurvey_group_array_filter_exclude.lsg]]. [[Question_groups_-_introduction#Import_a_question_group|Import this question group]] into your LimeSurvey installation.
</onlyinclude>
</onlyinclude>


[[Category:Question Settings/nl]][[Category:Advanced Question Settings/nl]]
[[Category:Question Settings]][[Category:Question Logic Options]]

Revision as of 15:40, 31 March 2018


Array uitsluit filter (array_filter_exclude)

Beschrijving

The Array filter exclusion setting allows you to use any multiple choice question to select or set which responses are NOT displayed in a subsequent list, array or multiple choice question.

The subsequent questions can be filtered on any array question type, including:
  • 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

Verder kunnen deze vraagtypes worden gefilterd.

The only exception is Array (Column), which can filter other questions, but can not itself be filtered.

How to set it up

Enter the question code of a multiple options question in the array exclusion 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 non-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 exclusion filter' box to start the filtering process of the answers. Only the answer options that are NOT selected in question Q1 will be visible in your question.

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

Voorbeeld

Let's see together the below example:



In the screenshot from above, we got two questions. The first one is a multiple choice question type, while the second one is a multiple choice with comments question type. The answers you provide in the first question will be excluded from the second one. For example, if you select the ComfortUpdate option (that has the subquestion code 'SQ1'), the 'SQ1' subquestion correspondent from the second question will be excluded. In our screenshot, we can observe that only Plugins (with 'SQ4') remained unselected in the first question and displayed in the second one.

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