Welcome to the LimeSurvey Community Forum

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

Filtering subquestions from an array

More
9 years 8 months ago #129521 by lore_pa
Hi,

I would like to filter some subquestions from an ARRAY question to a RANKING question, but it is not working.

I have an ARRAY question Q1 with 24 subquestions and 5 answer options (A1, A2, A3, A4, A5).
I need to display in RANKING question Q2 only Q1 subquestions with A1 and A5 response, in order to classify them.

I tried to do that by "array filter" in Q2 (advanced setting options) but I am not sure about the code I should put so it doesn't work.

Do you have any suggestions?

Thanks
The topic has been locked.
More
9 years 8 months ago #129541 by tpartner
You cannot directly filter a ranking question by specific answers in a previous array question. You will need to use a hidden check-box question and a combination of JavaScript and array-filter. Here is a workaround that you can adapt to your requirements - www.limesurvey.org/en/forum/can-i-do-thi...estion-result#112088 .

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
9 years 8 months ago #129597 by lore_pa
Thanks for your help
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose