I'm having trouble with resetting a search box. So my app has a main screen and there is a search box on this screen
This is the main screen
So the user is able to type in what they are looking for and when they click the search Icon, it brings them to the gallery with the item they typed in as a filter
The OnSelect of the search Icon is :
ClearCollect(SearchRecord, MainSearchText.Text);
Navigate(BrowseScreen,ScreenTransition.Fade);
So far, this all works. On the BrowseScreen, the seachtextbox.Default is set to :
(If(!IsBlank(First(SearchRecord).Value), First(SearchRecord).Value, ""))
And the gallery Item is set to:
Filter('Table', TextSearchBox1.Text in Name || TextSearchBox1. Text in 'Pn' || TextSearchBox1.Text in 'Supplier Pn')
The issue I am having is that when the user clicks the "Home" Icon, I want the search bar to reset. I know that it isn't resetting because the default of this search text box is set to
(If(!IsBlank(First(SearchRecord).Value), First(SearchRecord).Value, ""))
So even when I call the Reset(SearchTextBox), it is defaulting back to the default code. Is there any way around this ?
Thanks