- Posts: 5033
- Thank you received: 1257
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Re-order "other" option in multiple choice question.
- jelo
- Offline
- Platinum Member
Less
More
5 years 4 weeks ago #182299
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Re-order "other" option in multiple choice question.
Even without your excellent workarounds we can recommend to disable AJAX modetpartner wrote: I suggest disabling AJAX in the survey theme options.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: DenisChenu, ecoplan, cdorin
The topic has been locked.
- ecoplan
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 0
5 years 1 week ago #183340
by ecoplan
Replied by ecoplan on topic Re-order "other" option in multiple choice question.
I have a List (Radio) Single Choice Question with "other" enabled.
It seems the script needs to be modified to work with this question type too.
Any hints?
It seems the script needs to be modified to work with this question type too.
Any hints?
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10108
- Thank you received: 3593
5 years 1 week ago #183357
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 Re-order "other" option in multiple choice question.
This will work for list-radio questions:
Sample survey attached:
Code:
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ var otherOffset = 1; var newOtherIndex = ($('#question{QID} .answer-item').length-(otherOffset+1)); $('#question{QID} .answer-item:eq('+newOtherIndex+')').before($('#question{QID} .answer-item[id$="other"]')); }); </script>
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: ecoplan
The topic has been locked.
- ecoplan
- Offline
- New Member
Less
More
- Posts: 14
- Thank you received: 0
5 years 1 week ago #183380
by ecoplan
Replied by ecoplan on topic Re-order "other" option in multiple choice question.
Many thanks! Your expert answers make everything look so simple... I'll try harder.
The topic has been locked.