Problem with Expression Manager & Question Display

More
4 years 6 months ago #92198 by mjwallach
mjwallach created the topic: Problem with Expression Manager & Question Display
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)

Please Log in to join the conversation.

More
4 years 6 months ago #92227 by helper
helper replied the topic: Problem with Expression Manager & Question Display
For "Q3 relevance equation: ! is_empty(Q2_1.NAOK)" try Q2_1.NOAK != ""

see bugs.limesurvey.org/view.php?id=7200 for further information

Please Log in to join the conversation.

More
4 years 6 months ago #92245 by mjwallach
mjwallach replied the topic: Problem with Expression Manager & Question Display
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.

Please Log in to join the conversation.

More
4 years 6 months ago - 4 years 6 months ago #92248 by helper
helper replied the topic: Problem with Expression Manager & Question Display
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: 4 years 6 months ago by helper.

Please Log in to join the conversation.

More
4 years 6 months ago #92257 by mjwallach
mjwallach replied the topic: Problem with Expression Manager & Question Display
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.

Please Log in to join the conversation.

More
4 years 6 months ago #92267 by helper
helper replied the topic: Problem with Expression Manager & Question Display
arrg... no attachement - see if you can send it through a private message

Please Log in to join the conversation.

Did you already participate in our customer survey?

Don't miss your chance for great prices.

Please click here to participate:

Start now

Start now!

Just create your account and start using Limesurvey today.

Register now