Can't submit unless all drag items are currently on a drop target. HELP
Hi, I have been trying to make a drag and drop interaction and in doing so I have ended up with MANY triggers that are all necessary so far. I was really close to achieving the desired outcome of the slide however now I am again a little stuck. I have a button which is initially set to hidden and becomes visible when each drop target has had a drag item land on it.
Unfortunately I have had to create my own drop correct and drop incorrect states for each drag item due to the trigger for changing the button to visible from hidden when all of the drag items ARE NOT = Normal. For some reason the 'Are not' trigger wouldn't work with the built in states. I have then created a state called 'dropped' on each target which changes when any of the drag items and moved on to it. So what I have so far is the submit button becoming visible when all of the drag items are not normal and all of the drop targets are in the state of 'dropped'.
Here's the issue. When the submit button becomes visible; if i then drag one of the drag items from one of the targets the button still remains visible and allowing me to submit (which I don't want.) Also if I drop a item on a target which is already in use, the previously dropped item returns to the starting point and I can still click the button. I've tried to think of ways of hiding the button again by using a variable but i ended up giving up. I basically need all drop targets to be full before you can submit.
I've attached my file in case anyone wants to look and might have a way of hiding the button again in the case of an item being dragged out of a target or replaced by another item.