Hi Axure gurus,
I need your help with prototype a drag and drop behavior. I’ve attached my RP file here. I have 3 buttons on the page. UX Research, UX Design, UX Writing. Each button can be dragged and re-arranged in different order. When you drag one button(UXR) over another(UXD), it will set X, Y coordinates as variables. These two variables will be passed on to the button being dragged over(UXD). Then I tell Axure to move that button(UXD) to the original position of the dragged button(UXR). This all works fine when I realized that there’s no way I can track the name of the button that being moved(not dragged one). There could be so many permutations of how these three buttons are arranged. One idea was to assign Top, Mid, Bottom drop zones, and whichever button(A) ends up in a zone would be assigned to a variable. When button A is dragged over and released over the button B, I add release action under button A to send button B to the starting XY coordinates of button A. This requires me to specifically calling out the button B name. I can assign XY coordinates variables to each of the 3 buttons like UXR_X_Var, UXR_Y_Var, UXD_X_Var, UXD_Y_Var, UXW_X_Var, UXW_Y_Var, but I don’t know if I can assign the widget name being moved as a variable(button B) without specifically calling out the actual button B name in the release actions for button A. This is where my Axure knowledge ends, and I’m stuck. The whole idea here is to avoid using the actual widget name to move that widget. There’s just no way I can keep track which button name is on which drop zone after a few re-arrangements. No sure if I explained my challenge properly.
The other idea I had if I could detect button B is being overlapped and released over by button A, I could tell button B to go to the original position of button A. This action would be placed under button B, but not button A like the above scenario.
I’m building this behavior because I want to prototype a draggable form in near future so the rows in the form can be dragged and re-arranged. There could be way more rows than just 3.
Please take a look at my RP file. Thank you so much.
BTW, I love Axure. So much fun building prototypes in Axure.
KB
drag_drop.rp (106.7 KB)