Welcome to the LimeSurvey Community Forum

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

Relevance, Counting multiple Choice Answers

More
8 years 2 months ago #130015 by Svewa
Hi everybody,

I am trying to create a - probably very simple - condition for a certain question, but I can't figure out how to get it to work

I want to create a question that only is displayed if five answers of a multiple choice question-list have been selected. As I can't do that with just setting a condition, I know I have to use the Expression Manager, but I am not very familiar with Boolean algebra, so I need a little help. Also I am sure this question has been asked before, but unfortunately I wasn't able to find a topic regarding this.

Example:

Question_1:
Choose among the following:
1. ABC
2. DEF
3. GHI
4. JKL
5. MNO
6. PQR

Question_2
[Only to be shown if 5 of the 6 elements above have been selected]

Thanks for your help! =)
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 2 months ago - 8 years 2 months ago #130016 by DenisChenu
Replied by DenisChenu on topic Relevance, Counting multiple Choice Answers
Hi,

You can not use _ in your question title, then i take Question1
Code:
count(that.Question1.NAOK) >= 5

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: 8 years 2 months ago by DenisChenu.
The topic has been locked.
More
8 years 2 months ago #130032 by Svewa
Perfect, this solved my issue! Many thanks :)
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose