Filter by button

Hi, I think my issue is very easy for all of you. I am a beginner on wix.

I have a page with repetition connected to a database named Elements.
In Elements database, I have a column named Public. In this one you can find 3 differents types of public (Young, Very young, Adults)
I would like to filter the repetition bloc with buttons. Button Young, Button Very Youg, Button Adults

I don’t know how I could do it. Could someone help me please?

Thank you very much
Best Regards
Jennifer

Hello Jennifer,

in this little example, you can see how to do this with some code and a DropDown-Menu.
I think it is a better option, then using 3-buttons instead.

https://russian-dima.wixsite.com/meinewebsite/blank-3

Just take a look and do the same like in this example.

Hi Jennifer,

Happy to have you here. Have a look at this link.

This link explains how to use a filter. So when you press a button you need to apply the filter for that specific button to the dataset.

Try it out and let us know how it went… If you are unable to make it work, post what you tried and I will help you.

Regards
Nithin

Hi, Thank you a lot for helping me.

I show you what I tried in the joined file. Don’t know what is wrong but it doesn’t work at all.

Thank you so much
Best Regards
Jennifer

I am having trouble with the coding on a client’s site. They want a button to filter a database by a specific category. Can anyone help me with this?