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
2 years 10 months 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
2 years 10 months ago - 2 years 10 months 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: 2 years 10 months 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
2 years 10 months ago - 2 years 10 months 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: 2 years 10 months ago by pawelk.
The topic has been locked.
  • pawelk
  • pawelk's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 10 months ago - 2 years 10 months 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: 2 years 10 months ago by pawelk.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose