Welcome to the LimeSurvey Community Forum

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

Array Filter function with Multiple Choice question preceded by a Ranking questi

More
2 hours 59 minutes ago #275380 by anandkasturi
Please help us help you and fill where relevant:
Your LimeSurvey version: 7.11.0
Own server or LimeSurvey hosting: hosting
Survey theme/template:
==================
(Write here your question/remark) Please help us help you and fill where relevant:
LimeSurvey version: [see right hand bottom of your LimeSurvey admin screen]
Own server or LimeSurvey Cloud:
Survey theme/template:
==================
I have been using Array Filter option with Multiple Choice with text question, with a Ranking question earlier. The Ranking question code was entered into the Multiple Choice with Text question "Array Filter" box, and it worked fine. It only showed the multiple choice questions which had been selected in the Ranking question earlier. Now with v7, this is not happening ... all options of the Multiple Choice question answers are being shown

How do I fix this?

Thanks in advance

Please Log in to join the conversation.

More
1 hour 8 minutes ago #275382 by paul.borsdorf
This appears to be a bug related to changes in how responses to ranking questions are stored in LimeSurvey 7.
It would be great if you could submit a bug report here: bugs.limesurvey.org/main_page.php
As a workaround until this is fixed, instead of using the array filter, you can manually define conditions within the subquestions that reference the ranking question, for example: QRank_1.NAOK == "11" or QRank_2.NAOK == "11", etc. (if you want to check whether the option with code 11 was placed in the 1st or 2nd position in the ranking question). I have attached an example.
Does this help?

Brauchen Sie Unterstützung bei der Erstellung und Auswertung von Umfragen mit LimeSurvey?
Mein Angebot als autorisierter LimeSurvey-Partner finden Sie auf meiner Website www.paulborsdorf.de

Please Log in to join the conversation.

More
32 minutes ago #275383 by anandkasturi
Yes definitely helps! to know it's a bug, and that there is a workaround for now
very grateful
anand

Please Log in to join the conversation.

Moderators: tpartner, holch

Lime-years ahead

Online-surveys for every purse and purpose