Does anyone know if it’s possible to fuse finsweet filtering this way:
i’ve set up a main collection: Trips, inside i have reference fields for city, country, continent etc
i’ve linked the city to country and country to continent.
I’d like to it to be possible for the user to choose a country that he wants to find trips form, let’s say france. and also choose cities that are not in france and them to also show up.
right now, since it’s not connected it’s not showing that since if you choose france and malaga it’s not possible since they are not connected.
However, the basic rule is that your items need to contain the data you want to filter, and the filter needs to offer them as filtering options.
In your filter you’d present e.g. a list of countries and a list of cities.
In your data you’d have to have both fields available and tagged properly for the filter to work.
That means redundant data- Webflow has a single-hop rule on data binding, so you won’t be able to travel your ref chain. Each Trip would need a single-ref to its relevant city and its relevant country.
Side note- in theory it should be possible to write some custom code to look up the country from the city, and add it as a filterable field- however FS CMS Load and CMS Filter don’t have any documentation on how to adjust the filter data before filtering is performed, and the Finsweet support team doesn’t have guidance on this either.
Yes, it’s possible to achieve this using Finsweet’s filtering by applying custom logic. You can create a combined filter array that merges selected countries and cities into a single filter criterion. When a user selects a country (e.g., France) and a city (e.g., Malaga), the filter logic should treat these as independent filters rather than dependent ones. This way, the filter would display all trips related to France and those linked to Malaga, regardless of their connection. Implementing this requires custom JavaScript to handle the combined conditions effectively.