Drag and Drop locking
Oct 17, 2019
By
Cegos UK
I'm creating a free form drag and drop and there are two statements that the user has to drag into the box that is most appropriate to them and they must put a statement into both boxes. However one statement may be relevant in both boxes. Therefore I have created 4 drag objects, stacking them on top of one another to give the impression that there is only one of each statement. This is where my problem lies, I want to be able to stop the drag and drop once two statements have been placed into the relevant box(es). Is this possible? Has anyone found a way to do this?
11 Replies
Hi Elliot, you could perhaps use a trigger that pops up a box that hides the other options once there is a statement in each box.
Thanks Holley, any idea how to go about this?
Create a box that is the same color as your background with the initial state of hidden. Then you can have a trigger that changes it from hidden to normal once statements are in the drag spots. In this example below, the triangle is the hidden shape that you would make big enough to cover the unused top choices:
This post was removed by the author
Hi Holley
I'm struggling to work out how this could work given that there has to be an object on both 'Doing Now' and "Will Do" before they can proceed. I have attached my working file, any chance you could have a look and suggest what I need to do? If indeed it is possible?
Hi Elliot,
Take a look at my edited file and see if this is what you were looking for. I'd recommend saving it as a new file from your previous - I removed some triggers that didn't look necessary but I don't want you to lose them just in case you needed them~
I basically added a T/F variable for each box and set it to trigger when any of the 4 circles were dropped on them. When both boxes turn "true", another variable triggers which causes the white box to appear over the remaining circle option(s). Hope this helps!
Thank you Holley, I do need the other variables I think because the end goal is at the end there will be a total for the number of the A or B statement on 'Doing Now' and 'Will Do' will these all work together? So the process is:
1) The user places two statements (they can be the same one) over 'Will do' or 'Doing Now'
2) The user is unable to drag any further statements once one has been placed on each box
3) A running tally is kept through all 48 statements (only doing one until it all links up properly)
4) A results page at the end tells them how many of each statement was put on each box.
Hi Elliot - yes, it sounds like you'll want to add those variables back in.
In the file I sent back to you, I'd toggled the settings to allow only one drop per target but I noticed that it won't work until you change the drop targets to your invisible boxes. Click "Form View" on the right menu to get to the drop targets. They should look like this:
Here is where you toggle the one item per target setting:
Hi Holley
Thank you so much for all your help it's been amazing, sorry but I have another question....
I've added back in the variables back in and I can get it to add 1 to each of the variables where required but I can't get it to reset if it is moved away from a target area and if you drag it from one target area across to the other then the box pops up even though only one drop target is occupied. any ideas?
Hi again Elliot,
There may be a simpler way to do this, but I've added a few more triggers to help SL better understand the T/F states of the invisible boxes. It works for the most part - unless the learners are extremely indecisive I think it would suit your needs.
If this method doesn't work for you, you may consider disabling the invisible boxes once they have object dropped on them. If you went this route, you'd want to make a "reset" button for if your learners change their mind about their selections. You'd have to test this out to see if it still works with your counting variables, since this would require that slide to be "reset" to the initial state.
This discussion is closed. You can start a new discussion or contact Articulate Support.