Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Randomize items while keeping two at the bottom

  • eniisula
  • eniisula's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 4 months ago - 3 years 4 months ago #225245 by eniisula
Hello everyone,

<script type="text/javascript">
    $(document).ready(function () {
        var move_element = "SQ012";
        /* Please do NOT change the lines below */
        var move_element = "javatbd{SGQ}" + move_element;
        $("#" + move_element).insertAfter("#question{QID} .answers-list .answer-item:last-child");
    });
</script>

I have this code that helps me keep at the bottom one subquestion while others are randomized. I want to have 2 subquestions at the bottom not to move when others are randomized. How can I edit this code to achieve what I want?

Thank you in advance!
Last edit: 3 years 4 months ago by eniisula.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 4 months ago #225246 by Joffm
Either this
[url] www.limesurvey.org/manual/Workarounds:_M...meSurvey_version_3.x :[/url]

or use your code twice

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: eniisula

Please Log in to join the conversation.

  • eniisula
  • eniisula's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 4 months ago - 3 years 4 months ago #225260 by eniisula
Thank you!
Last edit: 3 years 4 months ago by eniisula.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose