Hey ZQ team,
I’m experiencing an issue with the Drag + Drop to Reorder RG plugin, and I’m hoping you can help.
After dragging and dropping an item in my repeating group, my workflow isn’t correctly updating the moved item’s position field in the database. Instead of properly reindexing the list, I’m seeing incorrect or unexpected values, like decimals (e.g., “1.5” instead of “2”) or duplicate positions, which causes issues with sorting.
What I’ve Set Up:
- My Repeating Group sorts by a position field (numeric).
- The DragableRG element is configured with sorting enabled.
- When an item is moved, my workflow:
- Uses “A Dragable RG Item Moved” as the trigger.
- Runs “Make changes to a list of things” to update the position field based on “This DragableRG’s New Sort Of Item”.
- Refreshes the repeating group.
The Issue:
-The updated position values are incorrect after dragging and dropping.
- Sometimes, it assigns decimal values (e.g., 1.5) instead of properly reordering as 1, 2, 3, 4, etc.
- The plugin doesn’t seem to be automatically reindexing the list sequentially.
I’ve attached several screenshots showing my data structure, plugin settings, workflow configuration, and the issue in action.
Could you clarify the correct approach for syncing the database’s position field after reordering items? Should I be handling this differently within Bubble?
Thanks in advance for your help!