I am trying to develop a custom multi select with search from the ground up—the WeWeb element is a bit too rigid for my liking. Anyhoo, I have a collection, eg Insights Page Filters,
that returns a handful of arrays, each with its own set of values, eg outcomes, that you can filter by. I am binding this to a list of items which appear in a dropdown. At the top of the dropdown is a search box. I am trying to “filter” the array of outcomes for items which “contain” whatever value is in the search box. This should feel no differently than searching WeWeb variables, collections and functions.
The problem I am having is, instead of being able to create a filter such as “where [array of outcomes] contains [search query]” I am being forced to filter on an individual index—eg 0, 1, 2, 3, etc— within the array. What am I doing wrong here?