Trigger event when answer is replaced in drop location?

Nov 19, 2015

Hello, I am trying to create a proper order drag and drop exercise where there are several correct answers. This is set up where only a single drag item is allowed in a drop target and drag items are returned to their original position when they are replaced by another.

In order to increment or decrement the variables of interest, I think I need to trigger an event specifically when a drag item is replaced and returned to its original position, but I cannot seem to find a trigger that would work for this purpose. I tried putting a hotspot around the original position with a drag over trigger, but that did not work until the drag item is actually clicked and moved again by the user.

I am pretty new to this software, so perhaps there is something I am overlooking.

5 Replies
Ashley Terwilliger-Pollard

Hi Roland,

I'm not sure I'm following the piece on "increment or decrement the variables of interest" so perhaps you could share a copy of your .story file here with us so that we could take a look? Once you start applying triggers to the drag and drop it does override the built in behavior (such as snap back) and so it may not be what you want to do. 

If you want to attach your file here you can use the "add attachment" button to share here in the forums. 

Roland Maynard

Here's a simple example. Each oval has a variable that is set when it is dropped into a rectangle. What I want the variable to do when one oval replaces another and the original is sent back to the start is to return its variable to 0. In the real file, there are 7 drag items and 7 drop locations, so setting a trigger on every possible replace combination would be very extensive. I thought I might be able to use states, but those do not trigger until the submit button is pressed. Thanks for your suggestions


Ashley Terwilliger-Pollard

Thanks Roland for sharing here. You can change the state before it's submitted - just have to uncheck the box to "delay feedback state" within your drag and drop options. 

I'm thinking using states would be the only way to reset the variable as there isn't anything else to tell Storyline that it's returned back to it's starting point. 

This discussion is closed. You can start a new discussion or contact Articulate Support.