Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: Problem with Expression Manager & Question Display

Problem with Expression Manager & Question Display 1 Jahr 6 Monate her #92198

  • mjwallach
  • mjwallachs Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 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)
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Problem with Expression Manager & Question Display 1 Jahr 6 Monate her #92227

  • helper
  • helpers Avatar
  • OFFLINE
  • Expert Lime
  • Beiträge: 126
  • Dank erhalten: 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
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Problem with Expression Manager & Question Display 1 Jahr 6 Monate her #92245

  • mjwallach
  • mjwallachs Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 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.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Problem with Expression Manager & Question Display 1 Jahr 6 Monate her #92248

  • helper
  • helpers Avatar
  • OFFLINE
  • Expert Lime
  • Beiträge: 126
  • Dank erhalten: 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?
Letzte Änderung: 1 Jahr 6 Monate her von helper.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Problem with Expression Manager & Question Display 1 Jahr 6 Monate her #92257

  • mjwallach
  • mjwallachs Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 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.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Problem with Expression Manager & Question Display 1 Jahr 6 Monate her #92267

  • helper
  • helpers Avatar
  • OFFLINE
  • Expert Lime
  • Beiträge: 126
  • Dank erhalten: 18
  • Karma: 0
arrg... no attachement - see if you can send it through a private message
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.132 Sekunden
Donation Image