Multi response, random and fixed

More
7 months 3 weeks ago - 7 months 3 weeks ago #152620 by SurveyDennis
SurveyDennis created the topic: Multi response, random and fixed
I have a multi response question with the other option.

I have also one exclusive answer option.


Answer 1
Answer 2
Answer 3
Answer 4
Other specify
None of the above


I need to randomize all answers except the last three.
So answer 4, other specify and none of the above need to stay in that order.
Those always need to be fixed in that order.

Is that possible?

Be SurveyFriendly too
dennis [at] SurveyFriendly [dot] com
Last Edit: 7 months 3 weeks ago by SurveyDennis.

Please Log in to join the conversation.

More
7 months 3 weeks ago - 7 months 3 weeks ago #152638 by SurveyDennis
SurveyDennis replied the topic: Multi response, random and fixed
I have made a workaround on the above.
But I have one minor challenge.

I can't get the answer option below "other" but only next to it.
Anyone an idea?

DemoSurvey:
here

<script type='text/javascript'>
/* Place option 5 at the end of the randomized list */
$(document).ready(function() {

//Answer 4 always before the other option
$('#javatbd986572X244X973SQ004').insertBefore('#javatbd986572X244X973other');

//Answer 5 always after other
$('#javatbd986572X244X973SQ005').insertAfter('#javatbd986572X244X973other');

});
</script>

Be SurveyFriendly too
dennis [at] SurveyFriendly [dot] com
Last Edit: 7 months 3 weeks ago by SurveyDennis.

Please Log in to join the conversation.

More
7 months 3 weeks ago #152655 by SurveyDennis
SurveyDennis replied the topic: Multi response, random and fixed
I found a solution -

Instead of adding the Answer5 option after other I placed it after the answer-container.
Probably not the most clean solution but it does do the trick for now.

//Answer 5 always after other
//$('#javatbd986572X244X973SQ005').insertAfter('#javatbd986572X244X973other');
$("#javatbd986572X244X973SQ005").insertAfter(".answer-container");

Be SurveyFriendly too
dennis [at] SurveyFriendly [dot] com

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!