- Posts: 78
- Thank you received: 2
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Multiple response other that can be ticked
- tixeon
- Topic Author
- Offline
- Senior Member
Less
More
3 years 5 months ago #208236
by tixeon
Multiple response other that can be ticked was created by tixeon
I recently discovered that people are dropping out of my surveys because they can't tick other in multiple response questions (see here:
forums.limesurvey.org/forum/can-i-do-thi...x-not-ticking#208099
)
I contacted support and they said this is just how the system works ( bugs.limesurvey.org/view.php?id=16157 ).
Therefore, I need to come up with a work-around moving forward to reduce drop-outs and increase accuracy of responses (people can choose other without having to type something in).
My thinking is to:
The complication lies in the fact that other is seldom at the end of the list (usually there is a don't know or none after it - it needs to be this way as this is correct answer option flow).
Incidentally, I also have code in the question text that locks the other and don't know to the end of the list when randomised.
This will have the added benefit in that I won't have to write syntax in SPSS to generate a variable for other for when I run multiple response tables!
Does anyone have ideas on how this can be done?
I contacted support and they said this is just how the system works ( bugs.limesurvey.org/view.php?id=16157 ).
Therefore, I need to come up with a work-around moving forward to reduce drop-outs and increase accuracy of responses (people can choose other without having to type something in).
My thinking is to:
- Include the other specify in the multiple response subquesiton list
- Create a short free text question after it that triggers if they click other
- Move the short free text question so it appears after the 'other' subquestion
The complication lies in the fact that other is seldom at the end of the list (usually there is a don't know or none after it - it needs to be this way as this is correct answer option flow).
Incidentally, I also have code in the question text that locks the other and don't know to the end of the list when randomised.
This will have the added benefit in that I won't have to write syntax in SPSS to generate a variable for other for when I run multiple response tables!
Does anyone have ideas on how this can be done?
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
3 years 5 months ago #208267
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Multiple response other that can be ticked
1) Add this script to the question source:
2) Add something like these styles to the question source:
Sample survey attached:
Code:
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ // The "Other" sub-question code var otherCode = '6'; // Identify this question var qID = '{QID}'; var thisQuestion = $('#question'+qID); var nextQuestion = $(thisQuestion).nextAll('.text-short:eq(0)'); // Move the next question $('.answer-item[id$="X'+qID+otherCode+'"]', thisQuestion).append(nextQuestion); }); </script>
2) Add something like these styles to the question source:
Code:
<style type="text/css"> .answer-item .question-container { margin: 0 0 0 -20px; border: 0 none; background: transparent; } .answer-item .question-title-container, .answer-item .question-valid-container { display: none; } .answer-item .answer-container, .answer-item .answer-item { padding: 0; } </style>
Sample survey attached:
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: tixeon
The topic has been locked.
- tixeon
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 78
- Thank you received: 2
3 years 5 months ago #208273
by tixeon
Replied by tixeon on topic Multiple response other that can be ticked
This is fantastic. This code is going to save me from respondent drop-outs and additional work in analysis, thank you so much. So elegant and easy to use!
The topic has been locked.