Manually add "allow one item per target" in a free form pick one slide?
Aug 18, 2016
By
Joni Grove
Hi all- I have a client who wants a drag & drop interaction where a target has more than one item to be dragged to it. I searched the archives and found a brilliant hack where one uses the freeform Pick One question type to allow this feature.
However, my problem arises on the second attempt when the learner tries to fix any incorrect choices. When one tries to switch answers, rather than kicking the previous, wrong answer out of the target, the new choice just gets placed on top of the previous answer. I need to find a way to manually create the "allow one item per target" that is used in a traditional D&D interaction.
I've attached my story so you can get the gist of it.
Thanks in advance for any help!
17 Replies
Hi Joni!
Thanks for sharing your file and allowing us to take a look. It certainly is working as designed with the set-up that you have.
I changed the attempts on the actual question to only 1 so that I could control with variables.
I added a variable for the Attempts, simply to drive the Try Again layer that it looked like you wanted.
To reset the slide, simply Jump back to the same slide - since you had the properties set to reset to initial state already :) You were so close!
Check out your updated file.
Thank you, Leslie! This would be perfect but I don't want the slide to reset totally- I, or rather the client, wants all of the answers to remain on the next attempt and then just move the wrong ones around. I think I found a way to do it using Motion paths and a move trigger but now I'm struggling with the correct/incorrect buttons not selecting properly. Always something! Thank you again for your help!
Good luck with your project Joni :)
In both story files posted above, the user can still stack multiple answers into a single target on any attempt. I'm in the same boat - I used the freeform pick one question workaround to allow for multiple drop targets which works great, except I don't want the user to be able to stack answers on top of one another in a single target. I'm only allowing one attempt. Using the project posted above, how can this be prevented manually?
Hi Samantha! You've identified one of the downfalls of not utilizing the built-in drag and drop for sure. I'm not aware of a way to prevent that with this setup. Hopefully someone in the community will be able to chime in and assist with your design.
Hi Samantha
could you put a transparent shape over the drop target that is initially hidden then change it to normal when the user drops a shape on the target,
See attached sample - might give you an idea
Hi Wendy,
Hmm that's a good idea, but if you take the shape out of the target (maybe to swap around answers), the target is then blocked by that transparent shape.
Hi Sam
updated file - this may help
Brilliant! Thank you :)
Ah I was still able to break it. If you drop an answer into the target, take it out and drop outside of the target (and hotspot), it's back to the transparent shape blocking the target. Stumped.
Hi heroes,
I've noticed that Wendy Farmer's smart solution does not work in the html5 output of Storyline 360.
I have submitted a case to report the bug : #01125976.
Thanks :-)
Thanks for letting us know that you've reached out to our support team Philippe. You should be hearing from someone soon.
Hi everyone,
Does anyone have a working solution to this? Covering the drop objects no longer works, the drag shapes are always on top of everything, so there's no way to stop them from stacking.
Try this
Thank you, looks like it's just what I need, I'll give it a try :)
Update: Walt's solution works great, except that I had to write over 50 triggers to build this page, which is messy and time-consuming.
This could all be avoided if Storyline had the option to specify 2 correct targets for one draggable object in D&D interactions (so the 'pick one' workaround wasn't necessary). OR the option to only allow one item per target when using the workaround.
Is anyone willing to take a look at how to apply Walt's approach to my file? I couldn't work it out from his file alone :(
This discussion is closed. You can start a new discussion or contact Articulate Support.