Welcome to the LimeSurvey Community Forum

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

Two or more answers show next question

  • pawelk
  • pawelk's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 3 weeks ago #217634 by pawelk
I have trouble understanding how I can create dependency between questions. I would like Q2 to show up only when 2 or more random answers are chosen to the question Q1.
Can someone give me a hint?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 3 weeks ago - 4 years 3 weeks ago #217636 by tpartner
Replied by tpartner on topic Two or more answers show next question
Q2 relevance:
Code:
count(that.Q1) > 1

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 4 years 3 weeks ago by tpartner.
The following user(s) said Thank You: DenisChenu, pawelk
The topic has been locked.
  • pawelk
  • pawelk's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 3 weeks ago - 4 years 3 weeks ago #217639 by pawelk
Replied by pawelk on topic Two or more answers show next question
Interesting. It works, but I also wanted to use for Multiple choice with comments. And when I select one answer and add a comment, the question Q2 shows up.
Last edit: 4 years 3 weeks ago by pawelk.
The topic has been locked.
  • pawelk
  • pawelk's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 3 weeks ago - 4 years 3 weeks ago #217657 by pawelk
Replied by pawelk on topic Two or more answers show next question
Code:
count(Q1_SQ001, Q1_SQ002, Q1_SQ003, Q1_SQ00, Q1_other) > 1
Last edit: 4 years 3 weeks ago by pawelk.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose