Actions

QS

Array filter/ja: Difference between revisions

From LimeSurvey Manual

No edit summary
No edit summary
Line 8: Line 8:
'''配列フィルター'''設定は複数選択質問に使うことができ、回答結果を後続のリスト、配列、複数選択質問に表示させることができます。
'''配列フィルター'''設定は複数選択質問に使うことができ、回答結果を後続のリスト、配列、複数選択質問に表示させることができます。


<div class="simplebox">後に続く質問では、以下の配列質問タイプによりフィルターされます。
<div class="simplebox">以下の配列質問タイプにより、後続の質問がフィルターされます。
*複数選択
*複数選択
*コメントつき複数選択
*コメントつき複数選択

Revision as of 15:24, 15 May 2018


配列フィルター (array_filter)

説明

配列フィルター設定は複数選択質問に使うことができ、回答結果を後続のリスト、配列、複数選択質問に表示させることができます。

以下の配列質問タイプにより、後続の質問がフィルターされます。
  • 複数選択
  • コメントつき複数選択
  • 自由回答(短い・複数)
  • 数字入力(複数)
  • 配列(5点、10点、はい/いいえ/どちらでもない、増加/同じ/減少、軸反転)
  • 配列(二元スケール、テキスト、数字)
  • 順位づけ

さらに、それぞれの質問タイプをフィルタリングすることができます。

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

How to set a filter

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.

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.


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.