Forum Discussion

HannahStrayhorn's avatar
HannahStrayhorn
Community Member
4 years ago

Getting Drag and Drop items to appear in random order

I recently created the attached exercise for an economics course. The answers are given and need to be dragged to the appropriate box. In creating the exercise I assumed that I could shuffle the order the answers appear on the exercise. Unfortunately, many of the unused answers are at the end of the list I created in the Form Menu. If I am unable to mix the order, I do not mind changing the order they appear, but I could not see a way to move any of the questions up or down in the Forms Menu. Only the Delete Choice and Anchor Choice were highlighted. How could I either shuffle the answers or change the order?

  • BeccaLevan's avatar
    BeccaLevan
    Community Member

    Hello Bill!

    Thanks for reaching out and sharing your file! It sounds like you want to change the order of your drag and drop answers. Happy to help!

    You can easily change the order of the drag items in the Drag & Drop options:

    Let me know if this is what you had in mind!

     

  • AlenaAyers1's avatar
    AlenaAyers1
    Community Member

    Thanks Nedim - I removed them from the scrolling panel and it works!

  • The only problem with this is that the tiles are not appearing randomly; they are only appearing in the order you want them to appear. 

    Is there any way to make the drag and drop options appear randomly?

  • Nedim's avatar
    Nedim
    Community Member

    The only way to display drag items randomly is by utilizing JavaScript. You could stack them on top of each other to simulate the "Reveal drag items one at a time" option. The script arranges a group of elements randomly in the stacking order on the screen by assigning them different z-index values. Attached is a short video demonstrating this interaction.

  • AlenaAyers1's avatar
    AlenaAyers1
    Community Member

    Hi there

    I am experiencing a similar issue in SL. I have created a free form Drag and Drop and have set the Drag items to appear one at a time and specified the order. The drag items are still appearing in the order on the timeline rather than the order I have specified. I'm probably missing something really simple. Please can somebody take a look at my SL file? Many thanks

    • Nedim's avatar
      Nedim
      Community Member

      I don't think the "Drag Item Sequence" option will work correctly with all drag items inside the scrolling panel. Try moving the drag items outside of the scrolling panel to see if that resolves the issue.