Changing content of container based on clicked button?

I want a simple container of texts where it changes based on what the user clicked, The whole page shouldnt be refreshed when button is clicked. So two buttons saying “Top 10” and “All”. When top 10 is clicked, the container would just show top 10 people. And when all is clicked, it will changed to all the people list.

Have you done the tutorial on “sending data to groups” ?

Your “container” is the group. And the buttons send different data depending on what button has been clicked.

There are other ways of doing this, so if the tutorial doesn’t help then we can explore them, but for now that would be the way to control what is displayed in a group.

2 Likes