Welcome to the LimeSurvey Community Forum

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

Questions appearing based on answers to previous array question

More
6 years 5 months ago - 6 years 5 months ago #159732 by mdado
I have an array question Q1 in which users have to rate their agreement to several statements.

I have a subquestion SQ005 and I want certain questions to appear based on their answers to that subquestion:

Answer options (An)

• Strongly disagree A2, disagree A3 and neutral A4 --> should lead to Q2
• Strongly agree A6, agree A5 --> should lead to Q3

My relevance questions in Q2 and Q3 haven't worked so far:

(Q1_SQ005 == "A2" || Q1_SQ005 == "A3" || Q1_SQ005 == "A4")

(Q1_SQ005 == "A6" || Q1_SQ005 == "A5" )

Any idea how to solve this? Thank you!
Last edit: 6 years 5 months ago by mdado.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 5 months ago #159738 by Joffm
Hello, mdado,
your brackets!!!

(Q1_SQ005=="A2") OR (Q1_SQ005=="A3") OR (Q1_SQ005=="A4")

or

Q1_SQ005=="A5" OR Q1_SQ005=="A6"

Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 5 months ago - 6 years 5 months ago #159756 by DenisChenu
Code:
(Q1_SQ005 == "A2" || Q1_SQ005 == "A3" || Q1_SQ005 == "A4")
must work too … even
Code:
Q1_SQ005 == "A2" || Q1_SQ005 == "A3" || Q1_SQ005 == "A4"
Then i think there are something other …

Maybe a screenshot of Survey Logic file at expression level ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 6 years 5 months ago by DenisChenu.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose