Slide layer help with drag and drop interaction

I have a program that has a drag and drop interaction.  With this I have 3 slide layers and have only been able to get two to work correctly.  My problem is that I want one slide layer to serve an an incomplete message, to only show when a user has not answered the question fully.  For example they have 5 answer choices and have only placed three in the drop target,the incomplete message should show because the question is not answered.  Instead my program is counting this an an attempt and showing the slide layer that a user will see if they received an incorrect message.

10 Replies
Ashley Terwilliger

Hi Jacqueline,

I was playing around with this one a test file, and it does seem to behaving as expected in that once you move one drag item to a drop location the question can be considered as "attempted" and no longer will show the "incomplete" message. What you'd need to do to get around this, is only allow the user to submit once each of the drag items is in a state of dropped correct/incorrect and if that isn't happening then they'd be shown your layer in question. 

I did a really basic mock up of this. You'll see it's only going to submit when the three items that are correct drag items are in the state of not normal (meaning they were dropped correctly or incorrectly) and then based on that it'll allow you to submit or show you the layer. 

 

Jacqueline Coleman

Hi Wendy and Ashley thank you guys for your assistance.  Ashley, I was able to use your file for reference but I am confused on how did you get the states of your stars to change.  I did not see any trigger commands for changing the states and was wondering if there was a way around writing multiple trigger commands.

Jacqueline Coleman

Ok the incomplete slide layer is now appearing but now I am having a different issue.  The Incorrect and Correct slide layers are not appearing even if the answers are dropped in the correct or incorrect drop target.  Any other suggestions will be greatly appreciated.

Ashley Terwilliger

Hi Jacqueline,

First, you'll want to ensure that you uncheck the option to "delay item dropped states until the interaction is submitted" and then next I'd remove all the triggers for changing the states to dropped correct/incorrect as those aren't necessary based on the definitions of the states and how they're expected to behave.

Once you've got those removed and reset I'd advise making the states a little different looking for your testing purposes so that you can actually see them changing their state and therefore making sure the triggers were set up correctly. You'll also want to take note of the trigger order of my first slide, in that the trigger to show that layer comes first, so that it's fired before any of the correct/incorrect information is processed as a part of the interaction.  I'd also look at not using a grouped item as you drop target - although that can work, I've heard varying reports of grouped objects behaving inconsistently in a drag and drop interaction, but it's not something we've been able to replicate. 

I'd continue to test with those things as I don't see anything off within your file outside of the above, but it still wasn't working on your course. You'll also want to confirm that you're working on local project files as detailed here. 

Alyssa Gomez

Hey there Jacqueline!

I took a look at your file and noticed that the states you were using for the drag items (Drop Correct & Drop Incorrect) were default states. Sometimes default states don't behave the way you'd want them to when you try to apply triggers to them because they are intended to be used without triggers. 

I swapped out your states for a new state called Dropped. This state does not indicate to the learner whether or not they have the answer correct, it simply indicates that the drag item has ben dropped on one of the targets. 

Take a look at the changes I made to your file here, and let me know if this will work for you!