Been trying to figure out how to get this drag and drop working. I have multiple drag and drops and managed to get some working but not this final one. The difference between the two is how the initial order (or index) is determined.
I used this guy’s method: https://www.youtube.com/watch?v=LDej-JtE1OY&t=1364s to get the other ones working.
It mostly works, although as it halves the average every time the numbers get smaller and smaller until Bubble rounds it to 0 in the database.
What’s different about this one is that the index is set by the order in which items are added to the drag and drop list (See images for the workflow expressions I used).
sem
2
Can you explain what you are trying to do here?
currently the drag and drop doesn’t actually reorder. I’m trying to make it so that if I drop something then everything pushes down one in the order.
E.g. If I drag item 5 and drop it into position 2, then current 2 becomes 3, 3 becomes 4, and so on.
In my other drag and drops each item had a specified initial starting order on entry but this drag and drop is reordering images for an image prompting tool, and there’s no categorical way to differentiate the inputs as it’s entirely user determined. Thus, I just went with the order being first is 1, 2nd is 2 and so on
(hence the order = RG - ImP Prioritize’s list of Prompt Blocks:last items order + 1). This part works, but then the order won’t change at all when I drag and drop the blocks?
Check out the DragIt plugin by @NoCodeDataArtisan instead.
You’ll get better support.
2 Likes
Thank you, @ihsanzainal84, for recommending DragIt and for your support. 
@moonrise.education, we would be delighted to assist you if you need help or have any questions about integrating DragIt’s drag-and-drop feature into your application.
1 Like
system
Closed
6
This topic was automatically closed after 70 days. New replies are no longer allowed.