Hi, I’ve a map with different categories of pins. I’ve added search and filters to the component but was wondering if there is a way on loading of only loading one category of pins and then allowing the user to then filter using the functionality of the component?
Any help appreciated.
Thanks.
J
1 Like
Do you mean pre-loading only one category, but still allow the user to check other categories in the built-in filter?
If so, it’s not a native option since you don’t have access to the built-in filter’s chosen value(s). You have to build a custom filter to do it.
Thanks, Can you point me in the direction of how a custom filters work? Thanks.
Here are the steps to create custom filters in Glide, based on Darren Alderman’s video:
- Create user-specific columns in your Users table to store filter values (e.g., selected category).
- Add Choice components that write the user’s filter selections into these user-specific columns.
- Set up your collection (or map) component to filter its data based on the values in the user-specific columns.
- Optionally, add a button to clear filters by resetting the user-specific columns.