Forum Discussion
Return state to normal on a Drag & Drop question
Hello,
I am trying to make a freeform which the user need to drag and drop item on a RNA structure. so I validated the drag and drop itens, but didn't linked with a right answer, because I need a multiple Drag and Drop question. So I used the state status to change to drop correct or incorrect. It is ok to do that. But the drag itens are keeping their last status when returning to start point when another drag item is dropped on(I activate the option allow one item on each drop target). so now, I don't know what to do to make them return to normal state eigther.
Someone can help me?? I can provide the .story if you need!!!!
Thanks in advanced,
Sara Faro
53 Replies
Hi Jason,
I played around with both the correct/incorrect separately, but yes I forgot about and/or conditions - so it would be a bit more than two triggers. I wonder if instead of using the state of the drag objects and the state of the submit button - you adjusted a variable based on the user dropping an element on any of the options, and then show that submit button based on the value of the variable. This is a super basic example and it doesn't account for a user dragging items back to the start but it may get you going!
- JasonJohnson2Community Member
That's how it is set up currently (with a variable tracking) but as you've stated, you can't account for when users move items back to start OR when it happens automatically.
Hi Jason,
When it happens automatically? You mean if you try to drop it off a drop target and is snapping back? That shouldn't count as it's not being "dropped" on any of the items mentioned. I just tested that in the file I shared, and the variable isn't updating if I just try to drop it in a random spot.
- JasonJohnson2Community Member
What about when one item pushes another back to start?
Well, then it would be considered "dropped" so the variable would have changed. I know it's not a perfect method, but it's a workaround until we hear from the QA team.
- RandallSauchuckCommunity Member
We ran into a similar issue. When the user drops a draggable it would either play a "correct" sound or a "wrong" sound based on the state of the draggable. However the sound would only play once from some items dropped on an incorrect target. The draggable would snap back to start but the state would remain DropIncorrect.
To get around this bug I added a trgger for each draggable to the "wrong" sound. After the audio plays it cycles through all draggables and resets all the states to Normal EXCEPT those that are DropCorrect.
Add a sound to your file (a couple seconds of silence) attach the riggers and it should work .
Thanks Randall for sharing that workaround here and I'm glad you've got it working. If you're able to share a sample file that may help others visualize what's occurring.
- JasonJohnson2Community Member
In my case however, the draggable items never return to a Normal state, so
I believe this is a different issue. Thanks for your suggestion though.
Ashley, can you check with the technical team to see if there's been any
resolution to my issue?
- RandallSauchuckCommunity Member
Hi Jason, My draggables were not returning to the Normal state either which is why I added the trigger to set it that way when the audio file completes.
- RandallSauchuckCommunity Member
here is a sample file. In my case I had different sounds playing when an item is dropped correctly or incorrectly. You could replace the sound with a recording of silence. You just need a media file of some sort to launch the trigger.
Hi Jason,
Thanks for checking in. The issue I filed is still with our QA team and as such I don't have any additional information to share. This thread and the case where you shared the file are marked for follow up once there is additional information to share.
Hi Jean-David,
There is not a change in the behavior of the drag and drop, as they won't reset to their initial location based on a reattempt of the slide.
Related Content
- 10 months ago
- 3 months ago
- 2 years ago