How do I keep an item from returning to it's original position in a drag and drop interaction

Nov 17, 2021

I have a drag and drop interaction but not using the build in "drag and drop" freeform tool. I am using the build in "pick one" freeform tool to track the score for each correct item dragged into the correct target. I using the following code to make the drag and drop action happen. 

When I use this code and try to drop the item into a incorrect target it pops back into it's original position. This is not the interaction I want. This action will let the students drag items over in a try and error fashion. This  would always give the student 100%.  

This is how I want the activity to function.

1. drag items to targets and they stay on the target

2. the student clicks the submit button

3. correct and incorrect indicator show up giving the students feedback

4. a message pops up stating they have 2 more attempts 

5. the student clicks the continue button

6. all the items return to their original positions and the correct and incorrect indicators hide

7. student try's for second time 

8. repeat again till all 3 try's are completed or the items are correct.

9. all the time the score is getting updated and will submit to Canvas when done

I know how to do the rest of the set up but I am just stuck with pop back issue. I have attacked the project file. Can anyone help me out? I am sure it is something simple.  I need another pair of eyes on this.

Thanks,

Dawn Singh

1 Reply
Maria Costa-Stienstra

Hi, Dawn.

Thank you for sharing your .story file!

Your triggers are only checking to see if an item is dropped in the correct spot, so you also need a trigger to change the item's state to Drop Incorrect. Here's an example using Item 7:

Windows 10 (1) 2021-11-18 at 10.11.07 AM

Once you define the Drop Incorrect states for all your objects, they shouldn't return to the initial position when dropped incorrectly:

Screen Recording 2021-11-18 at 10.11.46 AM

I hope this helps!