Questions about how to filter data in a repeater with a dropdown menu

I have a data collection with paintings and I want to let the user select a period. (In fact I want to give the user more options like subject, material, etc, but I leave that for now).

I follow this manual: https://support.wix.com/en/article/filtering-content-based-on-user-selection
But it can’t get it right. Actually I don’t know where to start with my questions…

I have in the data collection tags with 16th century, 17th century, etc.

Questions

  • Do I need an extra dataset for filtering with the actual filter for the dropdown?
  • When making the filter in the dataset the condition ‘contains’ won’t show up
  • There has to be a submit button. How is this connect to the dataset, collection and a field

Hi @leo ,

Using a dropdown to filter your content is actually pretty easy.

Along with following the Wix Support page article on filtering using a dropdown, I’d also recommend you follow this article from Wix’s Content Manager Learning Center : https://learn.wix.com/en/article/getting-more-out-of-datasets-6576486#filter-by-input-value

After you’ve read all that, try out this exercise on filtering content using a dropdown: https://learn.wix.com/en/article/getting-more-out-of-datasets-6576486#exercise-filtering-content . In this exercise, you’ll be shown - step by step - on how to add a dropdown and how to use it to filter content. I tried out this very exercise when I wanted to add a dropdown element to one of my websites. And after completing it, I fully understood the process of how to use a dropdown to filter content. I’m pretty sure you’ll get the hang of it too, once you finish this exercise. (I know this exercise is in the Wix Editor but it works in the exact same way for Editor X.)

Its best to try it out yourself as this will allow you to completely understand how it works. However, if you still don’t understand something or are stuck at some point, I’ll be happy to help you here!

And yes, you do not need any extra dataset and you do not even need a Submit button. The moment you click on an item from the dropdown, it will automatically be filtered. And if ‘Contains’ doesn’t show up, you can always use ‘Is’.

Happy learning!

Hi @pratham

Thanks for the links! This will probably help much. I’ll let you know.

Leo

Hi @pratham Well it’s indeed pretty easy until you know it. :grinning: But it’s working now. I’ve also noticed that you can’t filter ‘tag’ fields in the dropdown. The field has to be ‘text’.

A final question to be sure. It’s not possible to combine filters on one page. For example one for period and another for material. Suppose I want to see only artworks on paper in the 18th century? That has to be done in Velo. Am I correct?

Hi @leo ,

Glad to know it’s working now!

As far as I know, it is not possible to have multiple dropdown filters on one page, however I believe that yes, it can be achieved using Velo . Unfortunately I know nothing about Velo so I will be unable to assist you with that, but you can use the Velo Forum to get an answer to your question. I’ve found a related post in the Velo Forum which might be helpful: https://www.wix.com/velo/forum/coding-with-velo/solved-filtering-a-table-linked-to-a-dataset-with-multiple-user-inputs

Additionally, this video might help you too:

https://www.youtube.com/results?search_query=wix+how+to+use+multiple+dropdowns+to+filter+content