Drag and Drop Behavior
Jun 20, 2014
By
Nicole Sy
Hi Newbie here..first time poster.....I've created a non-submitted drag and drop (client request, just an interaction, not a scored or submitted quiz) - and I'd like a specific text box to show up after the last drag and drop item is placed on a target. I have each drag and drop item coming in one at time.
Second question - is there a way to control the size of the space between dragged objects - when using the "tile" option in the "drag target options" - right now they are set down and snapped into position too far apart from each other.
Thanks in advance for any help.
Nicole
4 Replies
Update - I have solved my second question....just need help with the first one please. Thank you!
Hi Nicole. I have built a similar interaction by adding a numeric variable. Each time the learner drags an item the variable goes up by 1 point. The "show layer" is triggered when the number reaches the appropriate amount (e.g. 5 if you have five items to drop).
You'll probably want to add a condition to each trigger that it only adjusts the variable the first time the learner drops it on space, otherwise the learner could get the variable to adjust upwards by dragging and dropping the same item multiple times. You should be able to do that by adding a state to the drop area ('visited' or 'dropped' or 'something'). Then you can add a condition adjust variable > when dropped on > only if state is NOT equal to X.
Hope that helps.
Thank you!!! That worked like a charm! Really appreciate you taking the time to respond!
Have a great weekend,
Nicole
You too, Nicole. Happy to help.
This discussion is closed. You can start a new discussion or contact Articulate Support.