The LimeSurvey Fund-Raiser 2012 is complete. Thank you for donating a total of 25,000 USD!     List of donors »

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Extended array filter -> array_filter_equation

Extended array filter -> array_filter_equation 10 months 3 weeks ago #82649

  • floccs
  • floccs's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 47
  • Thank you received: 5
  • Karma: 2
I've noticed that from 1.92 array filters are managed with expression manager.
In particular I've noticed, tell me if I'm wrong, that expression manager use filter qCode to generate a !is_empty(qCode_sq)-like condition for each subquestion sq.
It would be very cool to give the possibility to use a relevance-like equation in the filter field in order to extend the possibility of array filter.

Here a scheme to explain better:

Q1: question
A1 A2 A3
SQ1
SQ2
SQ3

Q2: question2
A4 A5 A6
SQ1
SQ2
SQ3

Q2 filter_equation: (Q1==“A2” || Q1==“A3”)

this equation would generate (Q1_sq == “A2” || Q1_sq == “A3”) for each subquestion sq showing in the question Q2 only the subquestions that have answer A2 or A3 in question Q1
The administrator has disabled public write access.

Re: Extended array filter -> array_filter_equation 10 months 3 weeks ago #82655

  • floccs
  • floccs's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 47
  • Thank you received: 5
  • Karma: 2
I've seen that this is similar to Idea #122, but I don't understand if the idea has been implemented as I've said in the first post.
I've to open a new feature request?
The administrator has disabled public write access.

Re: Extended array filter -> array_filter_equation 10 months 3 weeks ago #82662

  • TMSWhite
  • TMSWhite's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 751
  • Thank you received: 77
  • Karma: 33
We haven't implemented sub-question-level relevance as you describe it yet. However, there is a viable work-around here.

The documentation explains how to do this.
Last Edit: 10 months 3 weeks ago by TMSWhite.
The administrator has disabled public write access.
  • Page:
  • 1
Moderators: DenisChenu, ITEd
Time to create page: 0.170 seconds
Donation Image