- Posts: 40
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Array filter on array question by column
- Ryuniri_44052
- Topic Author
- Offline
- Banned
Less
More
8 years 8 months ago #122772
by Ryuniri_44052
Array filter on array question by column was created by Ryuniri_44052
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.
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.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10611
- Thank you received: 3690
8 years 8 months ago #122777
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on 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.
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:
The topic has been locked.
- Ryuniri_44052
- Topic Author
- Offline
- Banned
Less
More
- Posts: 40
- Thank you received: 0
8 years 8 months ago #122783
by Ryuniri_44052
Replied by Ryuniri_44052 on 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)?
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)?
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10611
- Thank you received: 3690
8 years 8 months ago #122791
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on 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:
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?
Code:
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.
The topic has been locked.
- Ryuniri_44052
- Topic Author
- Offline
- Banned
Less
More
- Posts: 40
- Thank you received: 0
8 years 8 months ago #122801
by Ryuniri_44052
Replied by Ryuniri_44052 on topic Array filter on array question by column
Thank you very much!
The topic has been locked.