Welcome, Guest
Username: Password: Remember me

TOPIC: Problem with Expression Manager & Question Display

Problem with Expression Manager & Question Display 1 year 6 months ago #92198

  • mjwallach
  • mjwallach's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
I have three questions in the survey. Q1 is a multiple-choice question. Q2 is a ranking question. Q3 is a multiple-choice question. Q2 has an array filter based on Q1. Q2 also has a relevance equation so that it displays only if there are two or more selections in Q1. Q3 should display only if Rank 1 is not empty. Q2 populates correctly based on Q1's selections. However, when Q2 Rank 1 is not empty, Q3 still does not display unless the first choice in Q1 is selected.

Q2 array filter: Q1
Q2 relevance equation: count(that.Q1.NAOK)>1

Q3 array filter: none
Q3 relevance equation: ! is_empty(Q2_1.NAOK)
The administrator has disabled public write access.

Re: Problem with Expression Manager & Question Display 1 year 6 months ago #92227

  • helper
  • helper's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 126
  • Thank you received: 18
  • Karma: 0
For "Q3 relevance equation: ! is_empty(Q2_1.NAOK)" try Q2_1.NOAK != ""

see bugs.limesurvey.org/view.php?id=7200 for further information
The administrator has disabled public write access.

Re: Problem with Expression Manager & Question Display 1 year 6 months ago #92245

  • mjwallach
  • mjwallach's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
Q2_1.NAOK != "" did not work.

Q1: multiple-choice question
Q2: ranking question with array filter Q1 and relevance equation count(that.Q1.NAOK)>1
Q3: multiple-choice question with relevance equation !is_empty(Q2_1) or Q2_1.NAOK != ""

Q3 only displays if the first item in Q1 is selected even though there is no reference to Q1 in the logic of Q3.
The administrator has disabled public write access.

Re: Problem with Expression Manager & Question Display 1 year 6 months ago #92248

  • helper
  • helper's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 126
  • Thank you received: 18
  • Karma: 0
Try it without the "or" - just a single statement of not equal to nothing.

Also, could you attach the survey to this post?
Last Edit: 1 year 6 months ago by helper.
The administrator has disabled public write access.

Re: Problem with Expression Manager & Question Display 1 year 6 months ago #92257

  • mjwallach
  • mjwallach's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
I wasn't clear in my last post. I did not mean that I had two relevance equation connected by an "or." All I meant was that neither of the two relevance equations worked.

I have attached an export of the survey.

Select two or more choices in Q3, but not the first one.
Q6 is correctly populated by the array filter set to Q3.
When the choices in Q6 are ranked, Q7 does not display, but it should.
Now select the first choice in Q3, and Q7 displays.
The administrator has disabled public write access.

Re: Problem with Expression Manager & Question Display 1 year 6 months ago #92267

  • helper
  • helper's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 126
  • Thank you received: 18
  • Karma: 0
arrg... no attachement - see if you can send it through a private message
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.110 seconds
Donation Image