Welcome to the LimeSurvey Community Forum

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

counted answers

  • RitaShen
  • RitaShen's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
6 years 4 weeks ago #165858 by RitaShen
counted answers was created by RitaShen
Hi, there, I have a question about the question design issue, I don't know how it can work on LimeSurvey.

the Question is:

Q1a. How many statements are true in your case?
□None
□One item
□Two items
□Three items
□Four items


Q1b.
How many statements are not true in your case?
□None
□One item
□Two items
□Three items
□Four items



If the respondents in Q1a answer None(0) and Q1b answer Two items(2), 0+2 is not equal to 4.
so it seems that the respondents miscounted, those people who miscounted will answer to the Q2.
if the respondetnts in Q1a answer One item(1) and Q1b answer Three items(3), 1+3 is equal to 4, so those people who answer the correct answer will go to answer the Q3.



simply put
Q1a+Q1b=4, answer the Q3.
Q1a+Q1b is not equal to 4, answer the Q2


is there anyone can help me to solve this issue?
many thanks


version:2.70.0+170921

Rita
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 4 weeks ago #165865 by Joffm
Replied by Joffm on topic counted answers
Hi,
just set
relevance of Q2: sum(Q1a,Q1b)!=4
relevance of Q3: sum(Q1a,Q1b)==4




Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: RitaShen
The topic has been locked.
  • RitaShen
  • RitaShen's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
5 years 11 months ago #168461 by RitaShen
Replied by RitaShen on topic counted answers
thanks Joffm.

And now I have another question about this.

If the respondents in Q1a answer None(0) and Q1b answer Two items(2), 0+2 is not equal to 4. sum(Q1a,Q1b)!=4
the respondents are forbidden to answer the next page,
they must stay on this page until they choose the correct answer

could I do this in the limesurvey?
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 11 months ago #168509 by Joffm
Replied by Joffm on topic counted answers
Hi, Rita,

assuming Q1 and Q2 are multiple questions and Q1_0 = None, you could set this as question validation in Q2:

((Q1_0=="Y") and (count(self)==4)) OR ((Q1_0!="Y") AND (sum(count(that.Q1),count(self))==4))

Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 11 months ago - 5 years 11 months ago #168526 by Joffm
Replied by Joffm on topic counted answers
Sorry, Rita,

I did not realize that it's the same scenario (two single questions)

So, validate the second question by:

sum(that.Q1,self)==4

Regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 5 years 11 months ago by Joffm.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 11 months ago #168531 by Joffm
Replied by Joffm on topic counted answers
Again sorry,

It was just a very - too - quick response.

Of course you have no validation in single punch questions.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose