I’m trying to create an app based on a map that displays various points of interest, with a list of those places shown below the map.
I’d like to have a dropdown menu that filters both the map and the list underneath based on selected categories (e.g. restaurants, hotels, bars…).
My data is correctly structured, I have a table with all the points of interest, including a column that indicates the category (and others with address, contact info, etc.).
I’ve tried everything — including using relations with other tables — but I can’t get it to work. The dropdown isn’t properly filtering the map or the list.
If you want a single filter that applies to both collections, then you need to create your own custom filter.
There are many ways to do this, but a one approach could be:
Add a User Specific text column to your User Profiles table
Add a choice component to the screen, source it from your list of categories, and target it the User Specific column
Add a filter to each collection: Category is User Profile->Selected Category
You can do a lot more with custom filters, depending on what you want. Below is a video that demonstrates some advanced techniques, that may give you a few ideas.
PS. It’s not necessary to create multiple posts for the same topic in different languages. We know how to use translation tools
I’ve closed the other topic.
Hi Darren, and thank you for your response.
I read your explanation and watched the video carefully.
However, I’m still stuck when it comes to linking my list above to the categories below.
When I select an item from the dropdown, it only changes the name of the first item in the list underneath.
And when I try to apply filters, everything disappears, and it doesn’t seem to be connected to the dropdown selection.
Sounds like you are not applying the filters correctly. Make sure you are applying the filters to the individual collections, and not to the screen/tab.