Forum Discussion

higherl's avatar
higherl
Community Member
10 months ago

Drag and Drop counts issue

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?

  • 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.

  • higherl's avatar
    higherl
    Community Member

    Hello. Thank you for your help. I saw the new triggers and count you added. Does it matter if the drag options do not have any correct/incorrect answers? Your triggers are only for the Drop Correct state.

  • Yes, many of the drag and drop options (including the change of state to Drop Correct) are dependent on having a correct drop target.  The Correct state in this case is a duplicate of the Normal state, so the learner doesn't notice any change, but the count depends on that change.