- Posts: 64
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
problem with multiple choice questions combined with exclusive option and matrix
- Andrea01
- Topic Author
- Offline
- Senior Member
Less
More
5 years 9 months ago #171339
by Andrea01
problem with multiple choice questions combined with exclusive option and matrix was created by Andrea01
Hi,
I have a problem with multiple choice questions combined with exclusive option and matrix filter.
Here it is:
1st question:
Q1: Which items do you know
Q1_1 Answer 1
Q1_2 Answer 2
Q1_3 Answer 3
Q1_DK Don't know
Exklusive Option: DK
2nd question: (only
Q2: Which items do you currently use?
Q2_1 Answer 1
Q2_2 Answer 2
Q2_3 Answer 3
Q2_DK2 Don't know
Relevanz- equation: ((Q1_DK.NAOK != "Y"))
Matrix Filter: Q1
Exklusive Option: DK2
3rd question:
Q3: Which items do you currently use?
Q3_1 Answer 1
Q3_2 Answer 2
Q3_3 Answer 3
Q3_DK3 Don't know
Relevanz- equation: ((Q1_DK.NAOK != "Y"))
Matrix exclusion Filter: Q2
Matrix Filter: Q1
Exklusive Option: DK3
Everything works fine except:
Question 3 is shown, if all answers are clicked in Question 2. But the whole Question 3 should not be shown in this case.
Question 3 should only be shown if one ore more answers in Question 2 are unclicked.
For better understanding please have a look at the sample survey.
Version 2.06lts Build 160801
Thanks for your help and best regards
Andrea
I have a problem with multiple choice questions combined with exclusive option and matrix filter.
Here it is:
1st question:
Q1: Which items do you know
Q1_1 Answer 1
Q1_2 Answer 2
Q1_3 Answer 3
Q1_DK Don't know
Exklusive Option: DK
2nd question: (only
Q2: Which items do you currently use?
Q2_1 Answer 1
Q2_2 Answer 2
Q2_3 Answer 3
Q2_DK2 Don't know
Relevanz- equation: ((Q1_DK.NAOK != "Y"))
Matrix Filter: Q1
Exklusive Option: DK2
3rd question:
Q3: Which items do you currently use?
Q3_1 Answer 1
Q3_2 Answer 2
Q3_3 Answer 3
Q3_DK3 Don't know
Relevanz- equation: ((Q1_DK.NAOK != "Y"))
Matrix exclusion Filter: Q2
Matrix Filter: Q1
Exklusive Option: DK3
Everything works fine except:
Question 3 is shown, if all answers are clicked in Question 2. But the whole Question 3 should not be shown in this case.
Question 3 should only be shown if one ore more answers in Question 2 are unclicked.
For better understanding please have a look at the sample survey.
Version 2.06lts Build 160801
Thanks for your help and best regards
Andrea
Attachments:
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3965
5 years 9 months ago - 5 years 9 months ago #171353
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic problem with multiple choice questions combined with exclusive option and matrix
Hi, Andrea,
I should just add this conditions to the relevance equation of Q3
(Q1_DK.NAOK != "Y") and ((Q2_1!="Y") OR (Q2_2!="Y") OR (Q2_3!="Y"))
Joffm
I should just add this conditions to the relevance equation of Q3
(Q1_DK.NAOK != "Y") and ((Q2_1!="Y") OR (Q2_2!="Y") OR (Q2_3!="Y"))
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 5 years 9 months ago by Joffm.
The topic has been locked.
- Andrea01
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 64
- Thank you received: 0
5 years 9 months ago #171361
by Andrea01
Replied by Andrea01 on topic problem with multiple choice questions combined with exclusive option and matrix
Hi Joffm,
Thanks for your reply. However, this condition only works if in question 1 all answers are clicked. If I only click one or two answers, it doesn't work. Any idea?
Best regards,
Andrea
Thanks for your reply. However, this condition only works if in question 1 all answers are clicked. If I only click one or two answers, it doesn't work. Any idea?
Best regards,
Andrea
The topic has been locked.
- Andrea01
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 64
- Thank you received: 0
5 years 9 months ago #171363
by Andrea01
Replied by Andrea01 on topic problem with multiple choice questions combined with exclusive option and matrix
This is how far I came:
If I put this condition in relevance of subquestion Q3.
(sum(that.Q1)) != (sum(that.Q2)).
This works so far, it doesn't show the subquestion.
Unfortunately, this condition doesn´t work in whole question relevance.
Thanks,
Andrea
If I put this condition in relevance of subquestion Q3.
(sum(that.Q1)) != (sum(that.Q2)).
This works so far, it doesn't show the subquestion.
Unfortunately, this condition doesn´t work in whole question relevance.
Thanks,
Andrea
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12881
- Thank you received: 3965
5 years 9 months ago - 5 years 9 months ago #171367
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic problem with multiple choice questions combined with exclusive option and matrix
Hi, Andrea,
I set the relevance equation of Q3 to:
(Q1_DK.NAOK != "Y") AND ((Q1_1.NAOK=="Y" AND Q2_1.NAOK!="Y") OR (Q1_2.NAOK=="Y" AND Q2_2.NAOK!="Y") OR (Q1_3.NAOK=="Y" AND Q2_3.NAOK!="Y"))
and it works
And:
(Q1_DK.NAOK != "Y") AND (count(that.Q1.NAOK)!=count(that.Q2.NAOK))
works as well.
Joffm
I set the relevance equation of Q3 to:
(Q1_DK.NAOK != "Y") AND ((Q1_1.NAOK=="Y" AND Q2_1.NAOK!="Y") OR (Q1_2.NAOK=="Y" AND Q2_2.NAOK!="Y") OR (Q1_3.NAOK=="Y" AND Q2_3.NAOK!="Y"))
and it works
And:
(Q1_DK.NAOK != "Y") AND (count(that.Q1.NAOK)!=count(that.Q2.NAOK))
works as well.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 5 years 9 months ago by Joffm.
The topic has been locked.
- Andrea01
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 64
- Thank you received: 0
5 years 9 months ago #171373
by Andrea01
Replied by Andrea01 on topic problem with multiple choice questions combined with exclusive option and matrix
Thanks a lot Joffm, now it's working.
Best regards
Andrea
Best regards
Andrea
The topic has been locked.