Skip to main content
Known Participant
October 17, 2022
Question

Drag and drop interaction - one object to multiple locations

  • October 17, 2022
  • 2 replies
  • 960 views

I have a variation on a drag-and-drop quiz with a bit of a twist and I'm having trouble finding a solution.

 

I have 4 drag objects on the left that have to be dragged 3 separate times each to 3 different cells in a table - the drag and drop objects have all been created and named in CP. Any idea on setting this up? Is it possible? 

This topic has been closed for replies.

2 replies

Stagprime2687219
Legend
October 17, 2022

I would use some variables and the Object Actions panel to work out the logic for each movement of the draggable.

Be sure to select that you can redrag the dropped source

Known Participant
October 17, 2022

Thanks for your reply, I can't find any object properties that define object containment in order to take this approach.

Stagprime2687219
Legend
October 17, 2022

You'll need to select the drop target(s) a

 

nd look at the format section.

Lilybiri
Legend
October 17, 2022

Sorry but I don't understand what you mean exactly.

'3 separate times': can you elaborate? What needs to be done in ONE attempt?

Known Participant
October 17, 2022

There are 4 objects on the left - each object has to be dragged 3 times to 3 different cells in the table. So the challenge is the fact that the object has to be repeatedly dropped to different targets for success.

 

Thanks for your reply.

Lilybiri
Legend
October 17, 2022

I am trying to create an example project for you, because I am not sure that my intuition will lead to the wanted result.

You can use object actions, but it will be rather complicated at least if I understand you correctly: you want all the targets to be filled for an answer, which means that you could need to have 3 stacked drag sources to the left.

If you want to know more about all the possible actions in the D&D interaction, have a look at my blog post:

https://blog.lilybiri.com/drag-and-drop-actions