Set a state for when a draggable item snaps back to origin

Jul 09, 2019

I have a drag and drop interaction where the draggable items change state when you drag them over the question area. I have it set to where they snap back to the origin if you drop them outside of a drop target. 

How can I set a state for when they return to their origin?

I've tried using various triggers, but since the draggable objects are moving automatically and not being dragged by the user, they don't work.

4 Replies
Deidre Witan

Wow thank you for that detailed answer! I appreciate it. 

Unfortunately, I don't think it will work in my case because I'm already using "drop incorrect" as its own state. So I have to use the "return item to start point if dropped outside ANY target" option. 

I was hoping there was a way to do it with a custom state (like a "dropped outside of target" state rather than "dropped incorrect").

Thanks again!


Deidre Witan

You know what, I think I was actually able to use the "drop incorrect" state after all. I just set a custom trigger for the state it should be when it was dropped on any target to override the drop incorrect state.

The solution ended up being

Trigger: When the object is dragged into the question area --> custom state

Trigger: When the object is dropped onto any target --> custom state

Freeform drag and drop settings: When the object is dropped outside of any target, snap back to origin

Drop Incorrect state: Identical to Normal state

Thank you again for all your help!!



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