Re-order repeating group with drag and drop

Hello everyone . I ran into new problem. I am using this plugin

This plugin works correctly. However, there is one thing I don’t understand. I am attaching a short video. (1)

As you can see the number on the left represents the id of that element. The number on the right represents the index of that element. When I change the position, the element index does not change.
What I would need is this, once I reordered that list I wish I could also have a simple id sorted by how I moved them. For example:
Initial values ​​134,135,136.
After moving them I would like to get (for example)
135,134,136, based on how I moved them. However I have not been able to get this result and the index never changes.
Has anyone run into such a problem and managed to solve it?

1 Like


The index is a vanilla Bubble function to indicate the order number of rows in repeating groups.

Create number type fields (dB or custom states as you see fit) to hold the initial index number in one. In another one add or substract the “drags” using the initial value of the row.

Hope this helps :+1:t2:

1 Like

forgive me you could be slightly clearer, can you give an example?

I was referring to whatever math is necessary to achieve your described function.

With custom states you could do the calcs during the browser session and when done save to the dB if needed.

With updating your row records directly (dB) is also another slower alternative.

This topic was automatically closed after 70 days. New replies are no longer allowed.