I have a text input called SearchBox_2. The Default property was automatically set to just "" (empty quotes).
I've also got a gallery with the Items property set to
Search(ContactsCollection, SearchBox_2.Text, "cr8e0_contact_name")
This has been working exactly as expected. The records in the gallery change based on what's typed into the text input.
However, when I try to make the Default of the text input contain a variable (_searchDefault), nothing shows up in the gallery at all until you type something. Even though _searchDefault is initally set to "", just like the Default property of the text input was originally.
I want the default to be a variable because then I can automatically change what's in the results/gallery based on a button my users will click, but they can also type in the search bar and change what's there themseleves, before or after whatever buttons they click. I don't want to hardcode the filter; they need the option to change it. Is there no way to do this? I set _searchDefault on visible of the page, and I've tried
Set(_searchDefault, "")
Set(_searchDefault, " ")
Set(_searchDefault, Blank())
But no matter what I do, the gallery is completely empty until they type something in. Is there no way to accomplish this? Why does "" work when typed directly into the Default of the text input, but the same value in a variable does not?