- Posts: 7
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Help with multiple array filters
- Damzee
- Topic Author
- Offline
- New Member
Less
More
8 years 17 hours ago #133604
by Damzee
Help with multiple array filters was created by Damzee
Hello!
I have a problem and i don’t know how to solve it.
I have 3 questions for example: Q1,Q2,Q3
Q1 is a mutliple choice question
Q2 is a multiple choice question too
Q3 is a multiple numerical input question
Q1 and Q2 answers are identical and Q2 use an Array filter exculsion so if you select an answer in Q1 it does not show up in Q2.
Q1 anwsers are all exclusive so you can only select one. Thats because if i use radio buttons then i can’t use array for filtering.
For example:
Q1: can only select one
a
b
c -checked
d
e
Q2: can select multiple
a
b
d
e
Now i want for Q3 to use array to show all the answers that are checked in Q1 and Q2.
Problem is if i set Q3 to use array for Q1 or Q2 only it works just fine but If i set the filter for both (Q1;Q2) it does not work (it shows no answers).
Any help will be appreciated.
I have a problem and i don’t know how to solve it.
I have 3 questions for example: Q1,Q2,Q3
Q1 is a mutliple choice question
Q2 is a multiple choice question too
Q3 is a multiple numerical input question
Q1 and Q2 answers are identical and Q2 use an Array filter exculsion so if you select an answer in Q1 it does not show up in Q2.
Q1 anwsers are all exclusive so you can only select one. Thats because if i use radio buttons then i can’t use array for filtering.
For example:
Q1: can only select one
a
b
c -checked
d
e
Q2: can select multiple
a
b
d
e
Now i want for Q3 to use array to show all the answers that are checked in Q1 and Q2.
Problem is if i set Q3 to use array for Q1 or Q2 only it works just fine but If i set the filter for both (Q1;Q2) it does not work (it shows no answers).
Any help will be appreciated.
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11758
- Thank you received: 2753
8 years 14 hours ago #133607
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Help with multiple array filters
What version of LS are you using?
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.
- Damzee
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
8 years 8 hours ago #133627
by Damzee
Replied by Damzee on topic Help with multiple array filters
I'm using version 2.06+ Build 151018
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10635
- Thank you received: 3699
8 years 2 hours ago - 8 years 2 hours ago #133637
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 Help with multiple array filters
In version 2.06, you can use relevance on the array sub-questions instead of array filtering.
So, the relevance for the first array sub-question would be something like:
Sample survey attached:
So, the relevance for the first array sub-question would be something like:
Code:
Q1_SQ001.NAOK == 'Y' OR Q2_SQ001.NAOK == 'Y'
Sample survey attached:
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
Last edit: 8 years 2 hours ago by tpartner.
The topic has been locked.
- Damzee
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
7 years 11 months ago #133709
by Damzee
Replied by Damzee on topic Help with multiple array filters
Thanks for the help i'm going to check it out!
The topic has been locked.