Welcome to the LimeSurvey Community Forum

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

Limit no. of max selections of a multiQ by the answer given to previous Q

  • zserban
  • zserban's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 4 weeks ago #166342 by zserban
Q1 (Single answer )
1. Between 1 and 2
2. Between 3 and 4
3. Between 5 and 6
4. Between 7 and 8
5. Between 9 and 10

Q2. (Multiple answer)
1.
2.
3.
4.
5.
6.

If respondent picks at Q1 1, he must not be able to select more than 2 answers at Q2, if he selects 2 at Q1, must not be able to pick more than 4 at Q2, etc.

What sort of Relevance equation could i use?

Thank you,
The topic has been locked.
  • holch
  • holch's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 4 weeks ago #166348 by holch
A thought of an easy way to do this: Give the answer code the value of the maximum numbers in Q2. So, something like this:

2. Between 1 and 2
4. Between 3 and 4
6. Between 5 and 6
8. Between 7 and 8
10. Between 9 and 10

In Q2 for the maximum answers you could just insert
Code:
==Q1

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • zserban
  • zserban's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 4 weeks ago - 6 years 4 weeks ago #166366 by zserban
Hi holch,


That's brilliant, thank you.


Later edit, just have to inser the question code, no `==` and it will do, quite nice.
Last edit: 6 years 4 weeks ago by zserban.
The topic has been locked.
  • holch
  • holch's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 4 weeks ago #166382 by holch
Correct! Sorry, I put the "==" by mistake.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose