Forum Discussion

FrancescoBerio-'s avatar
FrancescoBerio-
Community Member
2 days ago
Solved

Preventing to drag objects after drop correct status

Good morning everyone,

I'm having an issue with this slide. I'd like the objects to become non-draggable once they are all in the "drop correct" state. My idea is that Rectangle 8 should then prevent any further interaction with them.

However, I can't figure out why it's not working. What am I doing wrong?

I would appreciate any help or suggestions. Thank you in advance to anyone who can assist me.

Thanks!

  • I suggest creating a trigger that shows another (blank) layer when all of the rectangles are in the "Drop Correct" state. Make sure "Prevent the user from clicking on the other layers" is checked.

    I can't recall whether this was the default behavior, as it's been a while since I last used this drag-and-drop template. Normally, I would use another shape to prevent further dragging, or change the state of the draggable objects to Disabled once they are in the "Drop Correct" state, or use a similar technique.

     

6 Replies

  • AndrewBlemings-'s avatar
    AndrewBlemings-
    Community Member

    Once the draggables are placed, their z-order seems to change.

    In the example above, the draggables are clearly below the top-level blue rectangle until they're placed on a target, at which point they become above it. This wasn't something I was aware of, but it seems to be particular to this interaction type as I too have used invisible shapes before to block buttons on non-question slides.

  • Nedim's avatar
    Nedim
    Community Member

    I suggest creating a trigger that shows another (blank) layer when all of the rectangles are in the "Drop Correct" state. Make sure "Prevent the user from clicking on the other layers" is checked.

    I can't recall whether this was the default behavior, as it's been a while since I last used this drag-and-drop template. Normally, I would use another shape to prevent further dragging, or change the state of the draggable objects to Disabled once they are in the "Drop Correct" state, or use a similar technique.

     

    • FrancescoBerio-'s avatar
      FrancescoBerio-
      Community Member

      Yes... that is a good idea... Thank you very much. I'll do that

      • Nedim's avatar
        Nedim
        Community Member

        FrancescoBerio-​ Hi Francesco! If this solution works for you as it did for me, please consider clicking the "Mark as Solution" button on my reply.