Creating and changing a position/ranking of cards

I’ve created a feed of card which are given a position by assigning value “card:count+1”
So effectively

When creating cards

  • Card 1 = Position value = 1
  • Card 2 = Position value = 2
  • Card 3 = Position value = 3

And then the display is just looking at the list of cards, and displaying in ascending order.

I’m trying to figure out how to move these cards up and down positions.
I’ve managed to move Card 2, to Position 1 by saying “position -1 when move position up is clicked” But this does not affect Position of card 1.

So visually it would look like

Card 2 = position value = 1
Card 1 = position value = 1
Card 3 = position value = 3

I’m struggling to find ways to manage this functionality, and any help would be appreciated!

Thanks!

1 Like

@j.truong

If you have sometime this video by NoLogo in YT might spark an idea on what you envision > Reordering lists - Build an app in Bubble.is

Hey mate

Thank you it was a useful video showing the logic. Also just the fact it was called “reordering lists”, I subsequently, for future reference) also found this video which was exactly how I want my functionality to act

For some reason I havn’t been able to successfully call on current cells in my workflow despite it being a RG but will be studying both videos today trying to get it to work!

Cheers mate!

1 Like

Yeap! @TipLister has a ton of very instructive video and tips. Consider visiting https://tiplister.com/

Just FYI I followed tiplister and eventually it worked out.
Thanks @cmarchan for such a quick reply!

1 Like