- Posts: 2
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
multiple choice: 7 answers whereby 2 two are paradoxical - how to adjust the Que
- JohnDoe2000
- Topic Author
- Offline
- New Member
Less
More
8 years 8 months ago #123112
by JohnDoe2000
multiple choice: 7 answers whereby 2 two are paradoxical - how to adjust the Que was created by JohnDoe2000
i have a multiple choice question with 7 possible answers, e.g.
my face contains following parts:
- one nose
- one ear
- a right ear --> answer 5
- a mouth
- two ears ---> answer 3
-....
Is it possible to adjust the question so that question 3 and question 5 can't be chosen at the same time?
I would be glad if you could help me and it would be great if you could also tell me, if it's possible if there is a further case like this in this multiple choice-question, e.g. for answers 5 and 3 as well as for the answers 4 and 6.
Thank you.
my face contains following parts:
- one nose
- one ear
- a right ear --> answer 5
- a mouth
- two ears ---> answer 3
-....
Is it possible to adjust the question so that question 3 and question 5 can't be chosen at the same time?
I would be glad if you could help me and it would be great if you could also tell me, if it's possible if there is a further case like this in this multiple choice-question, e.g. for answers 5 and 3 as well as for the answers 4 and 6.
Thank you.
The topic has been locked.
- david2013
- Offline
- Senior Member
Less
More
- Posts: 42
- Thank you received: 6
8 years 8 months ago #123117
by david2013
Replied by david2013 on topic multiple choice: 7 answers whereby 2 two are paradoxical - how to adjust the Que
I guess you can do it in 2 ways: jQuery or Server side validation using EM
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13647
- Thank you received: 2491
8 years 8 months ago #123264
by DenisChenu
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.
Replied by DenisChenu on topic multiple choice: 7 answers whereby 2 two are paradoxical - how to adjust the Que
Hi,
manual.limesurvey.org/Question_type_-_Mu...28em_validation_q.29
Then, if your question code are MULTI, and ech subquestion have code SQ1,SQ2 ....
If you don't want SQ3 at same time than SQ5:
And for as 4+6 at same time
See manual.limesurvey.org/Expression_Manager for all variable and function.
Denis
manual.limesurvey.org/Question_type_-_Mu...28em_validation_q.29
Then, if your question code are MULTI, and ech subquestion have code SQ1,SQ2 ....
If you don't want SQ3 at same time than SQ5:
Code:
count(MULTI_SQ3,MULTI_SQ5) <2
See manual.limesurvey.org/Expression_Manager for all variable and function.
Denis
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.
The topic has been locked.
- rola
- Offline
- New Member
Less
More
- Posts: 10
- Thank you received: 0
8 years 8 months ago #123280
by rola
Replied by rola on topic multiple choice: 7 answers whereby 2 two are paradoxical - how to adjust the Que
i normally use JQuery function....
Code:
<script> $(document).ready(function (){ $("#[YourQuestionId]").find(".checkbox").change(function() { var chId=$(this).attr('id'); if($(this).is(":checked")) { if (chId == '[Anserwer5id]' ){ $('#[Anserwer3id]').removeAttr('checked'); } if (chId == '[Anserwer3id]' ){ $('#[Anserwer5id]').removeAttr('checked'); } } }); }); </script>
The topic has been locked.