Forum Discussion
Drag and Drop RESET option
Hi Kimberly,
That makes sense! So I played around and here's what I'd do:
1. Create Variable: TryAgain (Type: Number/ Value:0)
2. On your TryAgain layer, create the following trigger: Add 1 to TryAgain when user clicks TryAgain variable
3. On your Base layer, add the following trigger: Show layer Incorrect when user clicks the Submit button IF TryAgain is greater than or equal to 2.
NOTE: You can change the number 2 to however many attempts you'd like to give the learner.
There might be a simpler way to accomplish this, but I went ahead and attached an example. Good luck!
- kimberlylococo9 years agoCommunity Member
Hi Alexia,
That did the trick! Thanks so much for the help!!!
- kimberlylococo9 years agoCommunity Member
Alexia, I'm so sorry but still running into glitches on this on after doing more testing on this. Here is what I discovered:
I want to allow students 2 attempts to get the correct answer - so in essence they should only be able to click the Try Again button 1 time which takes them to attempt 2. If I set the TryAgain value to 2 for the number of attempts, it then let's them click Try Again 2 times (which now allows 3 attempts). So I ended up setting the value on Step 3 to Equal/Greater than 1.
In addition, we are also telling the system to show the Incorrect Layer after the Variable reaches the set value, which in my example, is 1. But, when testing this, if I select the correct answers on the second attempt, it still displays the Incorrect layer because I clicked Try Again 1 time, as set in the #3 condition. Shouldn't it first look at whether the answers are correct before being overridden by the variable?
I'm very perplexed on this one. It would be great if there was some way we could add a RESET button in a future release for Drag and Drop activities which allows users to set the draggable items back to their original position, if so desired.
- AmandaHegney4 years agoCommunity Member
thank you so much for this :)