Array filter on array question by column

More
3 years 1 month ago #122772 by boriginal
boriginal created the topic: Array filter on array question by column
Hey experts,

I want to use an array filter that filters the given answers by column in an array question - by now it is an array (numbers) question with checkbox layout. let's call this question: Q1.

I want to have three questions after Q1 that filter the answers of Q1. In the first one, I want to list those answering options only that was selected in column 1 of Q1. In the second question all answering options that was selected in column 2 of Q1 and so on.

Is it possible to use the array filter for this approach?

Thank you very much for your held in advance.

Please Log in or Create an account to join the conversation.

More
3 years 1 month ago #122777 by tpartner
tpartner replied the topic: Array filter on array question by column
In LS 2.05, you should be able to adapt this solution - www.limesurvey.org/en/forum/can-i-do-thi...estion-result#112088 (you will need several hidden multiple-choice questions for the filtering)

In LS 2.06, you can add relevance to sub-questions.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:

Please Log in or Create an account to join the conversation.

More
3 years 1 month ago #122783 by boriginal
boriginal replied the topic: Array filter on array question by column
Hey,

thank you for your quick response. So, i will update my LimeSurvey next week. But can you please tell me how to match this relevance with a filter? Like this: Q1_1 (If in Question 1 Column 1 was checkd on the corresponding subquestion)?

Question concerning the script: What do I need to change if I want to list all subquestions that was answered with "no" - or with a new third answer (column 3)?

Please Log in or Create an account to join the conversation.

More
3 years 1 month ago #122791 by tpartner
tpartner replied the topic: Array filter on array question by column
1) If, for example, Q1 is an array-checkboxes and has x-scale codes "X1, X2, X3" and y-scale codes "Y1, Y2, Y3, Y4", the relevance equation for following questions or sub-questions would be something like:
Q1_Y1_X1 == 1 OR Q1_Y2_X1 == 1 OR Q1_Y3_X1 == 1 OR Q1_Y4_X1 == 1

2) As stated, you would need to add two more hidden questions and then modify the listener to toggle those if column 2 or 3 checkboxes are checked. But why bother with that if you are upgrading?

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in or Create an account to join the conversation.

More
3 years 1 month ago #122801 by boriginal
boriginal replied the topic: Array filter on array question by column
Thank you very much!

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!