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
1 month ago
Nov 10, 2024, 1:24 PM
What is your use case here, are you trying to fuzzy search through an array when a user start typing?
benjabievres
1 month ago
Nov 10, 2024, 1:27 PM
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
1 month ago
Nov 10, 2024, 1:27 PM
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
1 month ago
Nov 10, 2024, 1:29 PM
@ What about Includes?
benjabievres
1 month ago
Nov 10, 2024, 1:57 PM
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!