Drag and Drop counts issue

Jan 13, 2024

I have this drag-and-drop question (see storyline file) that I'm using for testing purposes before I apply it somewhere else. When I drag 4 circles onto the drop target the Submit Answer button stays disabled, which is fine. The user needs to drag 5 circles onto the drop target and it becomes enabled. That works fine too.

My problem is that when I drag 4 circles onto the drop target, then if I slightly move one of those circles, it counts as 1 and the Submit Answer button becomes available. I added a count so you can see what's happening. Even the count is getting messed up when I drag the circles on and off the drop target.

Can anyone please help with this?

3 Replies
Walt Hamilton

As you found out, incrementing numbers is a very vulnerable action. It is far more reliable to Count the objects that meet the criteria. Set the Drag and Drop options to NOT delay changing state until the interaction is submitted. See the New scene in the attached.

If you want to show the count, and keep it up to date when objects are dragged off, you can also show the Count layer when the ovals are dropped on the invisible.