Actions

QS

Array filter/sl: Difference between revisions

From LimeSurvey Manual

(Updating to match new version of source page)
(Updating to match new version of source page)
Line 6: Line 6:
'''Opis'''
'''Opis'''


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.
<div class="mw-translate-fuzzy">
Filter polja vam omogoča  izbiro  odgovorov, ki se prikažejo v naslednjem vprašanju z lestvico.
</div>


<div class="simplebox">The subsequent questions can be filtered on any array question type, including:
<div class="mw-translate-fuzzy">
*Multiple choice
<div class="simplebox">Od verzije 1.92 dalje je  možno filtrirati odgovore za nadaljno vključevanje v vprašanja polj, vključno z:
*Multiple choice with comments
*Izbira več možnosti
*Multiple short text
*Izbira več možnosti s kometarji
*Multiple numeric
*Več kratkih tekstovnih odgovorv
*Array (5 point, 10 point, Yes/No/Unknown, Increase/Same/Decrease, Column)
*Več številčnih odgovorov
*Array (Dual Scale, Text, Numbers)
*Lestvice in polja (5 stopenjska, 10 stopenjska, Da/Ne/Ne vem, Povečalo/Ostalo enako/Zmanjšalo, Stolpec)
*Ranking
*Lestvica (Dvostopenjska lestvica, besedilo, števila)
*Razvrstitev
</div>


Furthermore, each of these question types can be filtered.
<div class="mw-translate-fuzzy">
Prav tako so lahko filtrirana tudi vsa ta vprašanja.
</div>


The only exception is ''Array (Column)'', which can filter other questions, but not itself.</div>
<div class="mw-translate-fuzzy">
Edina izjema je tip vprašanja Polje (stolpci), ki se lahko uporabi za filtriranje drugih vprašanj, medtem ko ta vrsta vprašanja ne more biti filtrirana.</div>
</div>


'''How to set a filter'''
<div class="mw-translate-fuzzy">
'''Nastavitev filtra'''
</div>


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.
<div class="mw-translate-fuzzy">
Za nastavitev filtra vnesite kodo vprašanja z več možnostmi. Na primer, če je koda vprašanja "Q1" vnesite "Q1" v vnosno polje "Filter polja" ali v vnosno polje "Izločitev filtra polja", ki se nahajajo znotraj naprednih nastavitev vprašanja, ki ga želite filtrirati. Vidni bodo samo odgovori, ki so bili izbrani znotraj vprašanja Q1.
</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>
<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>


{{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 filter''' function will not filter the answers to the first question. Check the below example to better understand how the whole system works.}}
{{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 filter''' function will not filter the answers to the first question. Note: When you want to filter the "other" answer option from the first question, you need to provide a subquestion for this answer in the second question and the subquestion code for this answer needs to be "other". Check the below example to better understand how the whole system works.}}
 
<div class="simplebox">If multiple choice allow other setting: you can choose '''other''' for subquestion code and filter with other checked or not.</div>


'''Cascading'''
'''Cascading'''
Line 46: Line 60:
</onlyinclude>
</onlyinclude>


[[Category:Question Settings]][[Category:Question Logic Options]]
<div class="mw-translate-fuzzy">
[[Category:Question Settings/sl]][[Category:Advanced Question Settings/sl]]
</div>

Revision as of 10:31, 12 October 2022


Filter polja (array_filter)

Opis

Filter polja vam omogoča izbiro odgovorov, ki se prikažejo v naslednjem vprašanju z lestvico.

Od verzije 1.92 dalje je možno filtrirati odgovore za nadaljno vključevanje v vprašanja polj, vključno z:
  • Izbira več možnosti
  • Izbira več možnosti s kometarji
  • Več kratkih tekstovnih odgovorv
  • Več številčnih odgovorov
  • Lestvice in polja (5 stopenjska, 10 stopenjska, Da/Ne/Ne vem, Povečalo/Ostalo enako/Zmanjšalo, Stolpec)
  • Lestvica (Dvostopenjska lestvica, besedilo, števila)
  • Razvrstitev

Prav tako so lahko filtrirana tudi vsa ta vprašanja.

Edina izjema je tip vprašanja Polje (stolpci), ki se lahko uporabi za filtriranje drugih vprašanj, medtem ko ta vrsta vprašanja ne more biti filtrirana.

Nastavitev filtra

Za nastavitev filtra vnesite kodo vprašanja z več možnostmi. Na primer, če je koda vprašanja "Q1" vnesite "Q1" v vnosno polje "Filter polja" ali v vnosno polje "Izločitev filtra polja", ki se nahajajo znotraj naprednih nastavitev vprašanja, ki ga želite filtrirati. Vidni bodo samo odgovori, ki so bili izbrani znotraj vprašanja Q1.

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. Note: When you want to filter the "other" answer option from the first question, you need to provide a subquestion for this answer in the second question and the subquestion code for this answer needs to be "other". Check the below example to better understand how the whole system works.


If multiple choice allow other setting: you can choose other for subquestion code and filter with other checked or not.

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