- Posts: 146
- Thank you received: 2
Ask the community, share ideas, and connect with other LimeSurvey users!
jelo wrote: Enable the other option (available on many questiontypes, not all). You can enter the text for the "other item" in the advanced options.
www.limesurvey.org/manual/Question_type_...Other.27_.28other.29
That's a weakness. There may be some workarounds available, which can move the item. I currently don't have a workaround at hand, but you might get more answers soon.mrli999 wrote: thank you very much! In that case the other must be the last one? Can I move to the second or third one, not the the last one?
Not without a little JavaScript magic.Can I move to the second or third one, not the the last one?
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Identify this question var thisQuestion = $('#question{QID}'); // The row where "Other" is to be placed var otherRow = 4 // Re-position "Other" $('li.answer-item:eq('+(otherRow-2)+')', thisQuestion).after($('li.answer-item:last', thisQuestion)); }); </script>
Why do you say that? Did you try it?This workaround will work as long as randomizing items are off.
Nope, the divs are still present so many workarounds are broken.BTW: Is the current LS 2.5 version now compatible with the proven workarounds of LS 2.06? Or still divs around?
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Identify this question var thisQuestion = $('#question{QID}'); // The row where "Other" is to be placed var otherRow = 4 // Re-position "Other" $('.answers-list .answer-item:eq('+(otherRow-2)+')', thisQuestion).after($('.answers-list .answer-item:last', thisQuestion)); }); </script>
tpartner wrote:
Nope, the divs are still present so many workarounds are broken.BTW: Is the current LS 2.5 version now compatible with the proven workarounds of LS 2.06? Or still divs around?
This should work in both 2.06 and 2.5:
Code:<script type="text/javascript" charset="utf-8"> $(document).ready(function() { // Identify this question var thisQuestion = $('#question{QID}'); // The row where "Other" is to be placed var otherRow = 4 // Re-position "Other" $('.answers-list .answer-item:eq('+(otherRow-2)+')', thisQuestion).after($('.answers-list .answer-item:last', thisQuestion)); }); </script>