Welcome to the LimeSurvey Community Forum

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

Array filter

  • CX-HUB
  • CX-HUB's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 4 months ago #217749 by CX-HUB
Array filter was created by CX-HUB
Hi,

A bit tired of searching for my problem...
I'm trying to implement the mechanic in the image, but my table array is not working towards P3.
P3 recognizes brands selected @ P1 but not those selected @ P2.

Any tips?
Thanks in advance..
Attachments:
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 4 months ago #217755 by tpartner
Replied by tpartner on topic Array filter
LimeSurvey version.

Did you add P2 to the array-filter setting for P3?

Are the sub-question codes exactly the same in all questions.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • CX-HUB
  • CX-HUB's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 4 months ago #217758 by CX-HUB
Replied by CX-HUB on topic Array filter
Hi tpartner,

LimeSurvey Cloud
Versão 3.27.4

Yes, they are 3 Multiple choice questions.

P1 is added to the array filter exclusion setting for P2 (so options selected @ P1 doesn't show up at P2)
-> This works as expected

P1; P2 were added to the array filter setting for P3 (so both options selected @P1 and P2 show up at P3)
-> This doesn't work as expected as P3 only shows options selected @ P1

If you've access, it's surveyid 412515.

Any guidance is very appreciated.

Thx.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 4 months ago #217761 by tpartner
Replied by tpartner on topic Array filter
How would I have access?

Can you attach a small sample survey (.lss file) containing only the relevant questions?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • CX-HUB
  • CX-HUB's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 4 months ago #217763 by CX-HUB
Replied by CX-HUB on topic Array filter
Hey, I'm just exploring options

I'm attaching an .lss with these 3 questions and a visual of this issue.

Thank you.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 4 months ago #217795 by tpartner
Replied by tpartner on topic Array filter
I see two problems:
- You have a blank space in the array-filter setting for P06 which renders it invalid.
- When using multiple questions in an array-filter, the sub-question is only shown in the filtered question if the corresponding sub-questions are checked in all of the filter questions.

To achieve your desired behaviour, you will need to use sub-question relevance in P06 instead of the array-filter. The only downside to this is that there is no relevance available for the built-in "Other" option so you will need to manually add a sub-question for that and add a following short-text to specify the "Other" value.

Sample survey attached: 

File Attachment:

File Name: limesurvey...8(1).lss
File Size:43 KB

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • CX-HUB
  • CX-HUB's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 4 months ago #217800 by CX-HUB
Replied by CX-HUB on topic Array filter
Thanks a lot, tpartner.

I was getting ready to go with a suboptimal solution but your design made it full compatible with my intent.

Have a great w.e.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose