Message Boards Message Boards

Back

D&D mistake

Toggle
D&D mistake
Answer
9/29/25 10:06 AM
Hi Smartbuilder team

I can't get the drag and drop function working as I want it by resetting the position of the blocks. I've attached a small project to show it.

When you drag an object (example object 1) on the wrong drop, it will give you a 'wrong' message. When you then click 'Try again', the last dragged object resets to original position.
Problem:
When I now hover over the drop zone with another object (object 2), the first object automatically jumps to the drop object. Like it forgot he resetted its position or something and goes to the position it ended up before.

I does work correctly when I put the 'drag reset' option in the D&D object to incorrect, but I also need the 'off zone' function. Besides that, I want the reset to happen after you click continue and not immediatly when you dragged on the wrong drop zone.

Thanks in advance
0 (0 Votes)

RE: D&D mistake
Answer
9/29/25 4:56 PM as a reply to Marcel Ooms.
Hi Marcel,
Good question! You actually want the Drag&Drop1.reset position of drag object block, NOT the Move block (see image). This Move block is used when you've other Move blocks to move an object around on the page (like moving left 50px, or something like that). The DnD handles both position and "drop state" of the drag objects. You can reset all the incorrect drags, or just the last object dragged, whichever suits your need better.

Hope that helps!
0 (0 Votes)

RE: D&D mistake
Answer
9/29/25 5:00 PM as a reply to Navdeep Dhillon.
Hi,

Ah I've completely missed this block. This solves it all emoticon. Thanks!
0 (0 Votes)