How to show button only to the highest count

I have a repeating group that lists restaurants and members can vote for a restaurant they want to gather at. In DB, I created vote count field to store the number of votes for each restaurant.

At the end of the vote, I want to display BOOK button only to the highest vote count restaurant. I thought using index but in the case of multiple places with the same vote count, it can be a problem.

How can I trace the highest vote counts and show button only to it(them)?

Add a hidden button in each cell and use this condition to make it visible:
When this Repeating Group's list of Restaurants : each item's vote count's max is current cell's Restaurant's vote count


Cheers,
Ranjit from Atomic Fusion

Explore and reuse Bubble assets created by a community of thousands of Bubblers and accelerate your Bubble development | Atomic Fusion

1 Like

Hi @atomicfusion, million thanks for help. :heart_eyes:

1 Like

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