Copy link to clipboard
Copied
Hi,
I have a drag and drop exercise in which a correctly dropped source stays in target, incorrectly dropped bumps back.
I have few sources that are the same, lets say: A A B B
And 2 x two targets which take A and B but: only A if B has already been dropped, or only B if A has already been dropped.
So it looks like this:
Target 1a: A
Target 1b: B
Target 2a: A
Target 2b: B
OR:
Target 1a: B
Target 1b: A
Target 2a: B
Target 2b: A
OR:
Target 1a: B
Target 1b: A
Target 2a: A
Target 2b: B
OR:
Target 1a: A
Target 1b: B
Target 2a: B
Target 2b: A
And so on...
I hope I've managed to explain what I need
I hoped that somebody knew how to set it up? I know how to create group sources and targets but this seems like a case for conditional drop... accept 'any' A or B unless A has been dropped then accept only any B? How to do that? Is it even possible?
Any ideas?
Cheers
Copy link to clipboard
Copied
can you clarify - are you looking for the "correct answer" to have the A, B pairing, or actually have the drop rejected and the shape returned to its starting point if an attempt is made to drop a similar shape in the same target?
Copy link to clipboard
Copied
I would need a couple of hours to explore a possible solution, because this will not be easy at all. You can use object actions, but D&D slides have some strict rules that cannot be violated. I wonder if another approach wouldn't be easier, maybe by distributing this over several slides. They can be set up in such a way that the user doesn't even see the transitions to other slides.
Do you need the D&D to be scored? What about resetting the slide after an attempt?
@sdwarwick OP mentioned that incorrect drag sources are already bumped back. It is about changing the D&D correct answer rules when some dragging actions have already been performed.
Copy link to clipboard
Copied
Thanks, @lilybiri, I didn't interpret the poster as having solved that part!
Copy link to clipboard
Copied
Thank you both very much for looking into this.
Yes, I need an incorrect drop to bump back AND I need points for all correct answers so when they're all dropped where they belong an automatic submission can be triggered - all I know how to achieve but when there are no complications of changing answer rules on the way.
I thought that maybe there is a simple solution that I just couldn't see but it seems like it is complicated indeed and maybe/probably impossible. I'll have to find a way around it and maybe have some of the answers already dropped.
Anyway, thanks one more time for your help and please do let me know if you find a solution! That would be amazing
Copy link to clipboard
Copied
That's easy. Say you have sources A and A. Call them A1 and A2. Copy them and name the copies A1_copy and A2_copy (both hidden). Set the target to reject A1_copy and A2_copy. If somebody drops A1, hide A2 and show A2_copy instead by an advanced action (correspondingly, if somebody drops A2, hide A1 and show A1_copy instead)
That's all.
Additional remark: To make this approach work with two targets, you have to copy the sources another time, name them A1_copy2 and A2_copy2. Set target 2 to accept A1, A2, A1_copy and A2_copy, set target 1 to accept A1, A2, A1_copy2, A2_copy2. Set all advanced actions in the right way and it will work.
Copy link to clipboard
Copied
I've had to create D&D that had similar complex behavior which forced figuring out how to essentially bypass the built-in D&D processing and develop directly in Javascript. It's not documented how to do this, and requires programming skills so it's not "off the shelf"
Copy link to clipboard
Copied
I wish I had your skills! My JavaScript understanding is very general... maybe it's time to skill up