8 months 3 weeks ago #165858 by RitaShen
RitaShen created the topic: counted answers
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 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
##### Attachments:

8 months 3 weeks ago #165865 by Joffm
Joffm replied the 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
##### Attachments:
The following user(s) said Thank You: RitaShen

7 months 6 days ago #168461 by RitaShen
RitaShen replied the topic: counted answers
thanks Joffm.

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,

could I do this in the limesurvey?

7 months 4 days ago #168509 by Joffm
Joffm replied the 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

7 months 4 days ago - 7 months 4 days ago #168526 by Joffm
Joffm replied the 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: 7 months 4 days ago by Joffm.

7 months 4 days ago #168531 by Joffm
Joffm replied the 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