Drag - Drop Reorder Your Repeating Group

Hello,
I would like to know if there is a way to save the drag and drop reorder for a current user. Once user reorder the repeating group I would like to save it to the current user so that each user can save their own reorder. How can I do it ? If someone can help me, it would be fantastic, thanks a lot

@jd1 Iā€™m doing this by setting up the Data Type (in the postā€™s example ā€œContactā€) to have a Field to identify the user, like their email address. This also allows me to display the data only to that specific user. Iā€™m still new to Bubble so there may be a better way but hereā€™s what I did:

However you set that type up to receive data, for example a contact entering their contact info via Inputs, just make sure to create a workflow there that also assigns the Current Userā€™s identifier (email address) to the new user field you created. Once thatā€™s set up youā€™ll see the list of Data with a user tied to it in App Data.

Hope this helps! Iā€™ve been getting tons of help from the forum and wanting to start giving back!

1 Like

Hey Laurence.

I havenā€™t been here in a long time! This has been an interesting thread for a long time. Honestly, I solved this over a year ago and my version works just like youā€™d want paper cards resorting. No problems. Have you figured it out yet?

Yes Laurence, programming is tricky eh? Programmers are always banging their heads against the wall to figure out their bugs. However, the added spicy goodness of this Bubble puzzle is that you can never really tell whether itā€™s your error or a quirk of the Bubble platform. Usually itā€™s been a gap in my logic. However, Iā€™ve spent significant time researching Bubble as my playground and confirmed that yes, there are quirky things due to the template layer. No oneā€™s perfect right? But @emmanuel has done a GREAT job creating something HIGHLY useful for folks.

Bubble is my work space and playground.

Rock on Laurence.

1 Like

LOLZ. (<-- Yes, Bubble forum, this is a complete sentence.)

1 Like

Keith,

You do you bro!

Keep it realz.

L8r!

Ashley

1 Like

jd1,

Did you get the help you were seeking? I didnā€™t quite understand @john9ā€™s suggestion and wondered if it gave you what you needed.

Ashley,

Iā€™ve been so caught up with other problems in my app and in Bubble that I havenā€™t gotten back to the drag-drop issue. Itā€™s still very clunky in my app. Hopefully, Iā€™ll get back to it in a few weeks.

Iā€™m not unfamiliar with programming at all. I grew up with IBM mainframes, Basic Assembler Language, COBOL, and through to Microsoft Active Server Pages. Iā€™ve never experienced an unstable development environment like Bubble. If it worked, it could be great. Since it doesnā€™t, I really question whether I should move to some full-stack architecture.

:sweat_smile: Sorry I agree, not so clear. Basically just make sure to tie a User to the Data Type youā€™re trying to Drag/Drop. The original post adds a field called Order to the Data Type ā€œContactā€, I also added a User field:

image

I havenā€™t tested this lately since Iā€™m in the weeds in another place but I will soon and check back in to confirm itā€™s working.

Yup works as expected. I can mock up a quick demo if that would be helpful.

2 Likes

Hi @laurence,
Actually I didnā€™t try again and I let it down from now. But I will take a look as soon as I go back to this functionality.

Thanks @all for you help.

Please. It would be helpful.

Here you go: https://bubble.io/page?name=index&id=dragdrop&tab=tabs-3

Just run as user 1 and 2 and drag the groups around. Youā€™ll see the changes are saved to the user you made the changes under.

Note that if you add in a Contact with the Inputs at the top it wonā€™t auto assign an incremental Order automatically. Havenā€™t figured that one out yet. If anyone wants to show how that works (@mebeingken? I bug this guy all the time :grimacing:) feel free to edit since this is totally an example app.

1 Like

Added the functionality to insert a contact to the top of the order list when created.

2 Likes

Thanks! So itā€™ll be creating negative Order values. Is that better than using addition in the workflow?

Negative or positive, its just an integer so can be part of the order process. Just a quick example that works for this demo. Not sure what you mean by ā€œbetter than addition in the workflowā€ though.

Sounds good. Was just wondering if there was a reason to make the order numbers negative vs positive but you answered. Thanks again.

Hey Laurence.

The only thing that Bubble offers to experienced folks is speed of development. Itā€™s clunky in places, yet it usually gets the job done very quickly.

Thank you so much.
I made some modifications in the workflow to get a reordering of the whole list of items.
(In my example I deal with Steps, not Contacts)
12

21

3 Likes

I just published a Free template with a functional Drag and Drop Re-Ordering List and instructions to put it into your own app.

Get it here :point_down:

18 Likes

OMG thank you Santa!! :pray:

1 Like