Multi response, random and fixed

More
6 months 3 days ago - 6 months 3 days 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
SurveyFriendly Designer [at] SurveyFriendly [dot] com
Last Edit: 6 months 3 days ago by SurveyDennis.

Please Log in to join the conversation.

More
6 months 3 days ago - 6 months 3 days 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
SurveyFriendly Designer [at] SurveyFriendly [dot] com
Last Edit: 6 months 3 days ago by SurveyDennis.

Please Log in to join the conversation.

More
6 months 2 days 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
SurveyFriendly Designer [at] SurveyFriendly [dot] com

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now