Changing state of drop target to use with trigger for custom invalid answer layer
Jan 28, 2017
Hi all - I'm relatively new to SL2, so I confuse relatively easily! It seems like there would be a relatively easy solution to the following mystery, but I've yet to find it. Any help would be appreciated.
- I have a fill-in-the-blank/drag drop activity that uses a word bank with 9 drag items. I have 4 drop targets.
- I've created a custom invalid answer message and now I'm trying to create the base layer trigger to show when the custom message should appear.
- I want the invalid answer message to prevent the learner from submitting if all 4 blanks are not filled.
- It seems logical that I would change the state of the drop targets to 'Answered' when any shape (9 words in word bank) is dropped on it - but I cannot figure out how to create that trigger. I see where I can change the states of drag items when they're dropped on targets, but not vice versa.
I've tried to figure it out myself, but have now reached cognitive overload. Please help!
Paula
13 Replies
Hey Paula
here is a rough sample file - if this doesn't help you can you share your .story file - easier for someone to help if they can work with your existing file.
Hi - I'm struggling to upload the file - it's 15MB
Here we go - made it muuuuch smaller.
Hi Paula
I added a number variable called drops and used that in triggers instead of the 'answered' state of the drop target.
Hope this helps
Thank you so much Wendy. If I wanted to prevent the learner from leaving a blank empty (for example, dragging item 1 back to the wordbank and forgetting to replace it); would I use a variable that subtracts - or would I have to add additional parameters to the drop targets so they would not double-count?
Hi Paula
the triggers set up change the state of the drag item to 'dropped' you'd need to change your drag item back to 'normal' you're then getting into adding more triggers to change your drag item state back to 'normal' and having a 'drop target' for bringing them back.
Just testing now and it is working of sorts but when they drag back the items drop on top of each other which won't work.
HI Paula
see if we are getting closer with the attached.
i created a hotspot drop for each item when the user drags the item back and added a subtract trigger.
You may need to space out the drag items a little.
Maybe this will give you some ideas.
Wendy, that is almost exactly what I was looking for! You're amazing. Now all I need to do is fix my drag/drop options (snap-to, etc) and my states (so the item resumes its normal state if it moves back to the word bank) - and I should be all set.
Is there any advantage to using the hotspot drop over a 'normal' drop?
Hi Paula
the snap to and states should be working as I added an individual return drop for each item and a change state trigger for each item. These triggers etc are required as the DnD options only work for the original interation from word bank to text field drops - not the other way.
See attached video - are you not seeing this behaviour or am I miss understanding your requirement?
Hi Wendy - I do see that behavior, but I meant to describe the behavior of the drop target. I went into DnD options/Drop Target options/Snap dropped items to drop target-Snap to center and it worked.
Thank you again for all of your help - I've learned a lot from this!
Great Paula - sorry I thought you meant the return drops - good luck with your project!
This thread helped me fix my own problem with a custom drag and drop question! :D
Yay, so glad you found just what you needed! 🎉
This discussion is closed. You can start a new discussion or contact Articulate Support.