- Posts: 26
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
<script type="text/javascript" data-author="Tony Partner"> $(document).on('ready pjax:scriptcomplete',function(){ // The subquestion codes to fix at the end var fixedCodes = ['97', '99']; // Identify this question var qID = '{QID}'; var thisQuestion = $('#question'+qID); var itemsLength = $('.answer-item', thisQuestion).length; var offset = 1; if($('.answer-item[id$="X'+qID+'other"]', thisQuestion).length > 0) { offset = 2; } // Move the fixed items $.each(fixedCodes, function(i, code) { var thisItem = $('.answer-item[id$="X'+qID+code+'"]', thisQuestion); var replacedItem = $('.answer-item:eq('+(itemsLength-i-offset)+')', thisQuestion); $(thisItem).before(replacedItem); $('.answers-list > ul:last', thisQuestion).append(thisItem); }); }); </script>
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Maybe check with this solution : github.com/LimeSurvey/LimeSurvey/pull/3038There is probably a CSS workaround but I'm away from a computer today.
Please Log in to join the conversation.