Welcome to the LimeSurvey Community Forum

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

Filtering subquestions from an array

  • lore_pa
  • lore_pa's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 2 months ago #129521 by lore_pa
Filtering subquestions from an array was created 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.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 2 months ago #129541 by tpartner
Replied by tpartner on topic Filtering subquestions from an array
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.
  • lore_pa
  • lore_pa's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 2 months ago #129597 by lore_pa
Replied by lore_pa on topic Filtering subquestions from an array
Thanks for your help
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose