Actions

QS

QS:Array filter

From LimeSurvey Manual

Revision as of 08:28, 11 December 2023 by Maren.fritz (talk | contribs)


Filter polja (array_filter)

Opis

Nastavitev Filter matrike vam omogoča, da uporabite katero koli vprašanje z več možnimi odgovori, da izberete ali nastavite, kateri odgovori bodo prikazani na naslednjem seznamu, nizu ali vprašanju z več možnimi odgovori.

Naslednja vprašanja je mogoče filtrirati glede na katero koli vrsto matričnega vprašanja, vključno z:
  • Večkratna izbira
  • Večkratna izbira s komentarji
  • Večkratno kratko besedilo
  • Večštevilsko
  • Matrika (5 točk, 10 točk, Da/Ne/Neznano, Povečanje/Enako/Zmanjšanje, Stolpec)
  • Matrika (dvojna lestvica, besedilo, številke)
  • Razvrstitev

Poleg tega je vsako od teh vrst vprašanj mogoče filtrirati.

Edina izjema je »Matrika (stolpec)«, ki lahko filtrira druga vprašanja, ne pa tudi sebe.

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.