Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Help with multiple array filters

  • Damzee
  • Damzee's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 7 months 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.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 7 months ago #133607 by holch
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
  • Damzee's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 7 months 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
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 7 months ago - 8 years 7 months ago #133637 by tpartner
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:
Code:
Q1_SQ001.NAOK == 'Y' OR Q2_SQ001.NAOK == 'Y'

Sample survey attached:

File Attachment:

File Name: limesurvey...59-2.lss
File Size:24 KB

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 8 years 7 months ago by tpartner.
The topic has been locked.
  • Damzee
  • Damzee's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 7 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.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose