Hey! I've been testing a filter on the name of items in an array, but I didn't find any "contains" formula. So I ended up using Match and checking if the lenght of the resulting string is not 0, but it's complex π Is there any simpler way to do it? Thanks!!
Olumise
4 months ago
What is your use case here, are you trying to fuzzy search through an array when a user start typing?
benjabievres
4 months ago
Yes, I get a list of objects (Make scenarios) from an API call, and I want the user to type text in an input so that it filters by the name of the scenarios. It works fine, but Iβm sure there is a simpler way to build the filter.
Tod
4 months ago
Great energy @! Your continuous contribution to the toddle Community just made you advance to Community Level 1!
Just copy the code in your page and you will see the option in the formula editor
Tom Ireland
4 months ago
@ What about Includes?
benjabievres
4 months ago
Nice one @Tom Ireland! Exactly what I needed! It works perfectly after setting everything to lowercase. @Olumise Fuzzy Search is just insane!! So far I didn't manage to make it work (it doesn't return true/false), but maybe I did something wrong in my configuration. Anyway thank you both!