Announcements
Hello,
I have 2 screens; one with a text box and a button which navigates to another screen; and one with a search box. I want the search box to read what is in the text box on the same screen as the button. I have set variable and when I navigate to the other screen the search box has the text I want for a millisecond, then disappears.
Any ideas?
Thanks,
Liam
You will need to post the onselect for the button, as well as the text value for the search box control so people know where you went wrong
I'm assuming when you say "search box" you mean a combo box control. How are you setting the variable and how are you applying it within your search box? If it were me I would be setting the variable in the OnChange property of the text box and setting the Default property of the combo box to be the text. But that might not work depending on what the Items are for your combo box.
Does the OnVisible of your second screen contain any commands that would reset the variable or the 'search box'?
As a tip, try to use context (UpdateContext) variables (rather than SET global variables) wherever possible (always use the most limiting scope possible). You can pass a context variable as the third (optional) parameter in a Navigate function to pass a value into the screen being opened.
@Anonymous
Consider skipping the variable and just reference the control from the screen you are navigating to.
Controls in PowerApps are all global, and you can retrieve their values from anywhere.
So on your other screen, using yourSearchTextControl.Text will return whatever is in that control.
I hope this is helpful for you.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 381 Super User 2026 Season 2
Mohsin Ali 340
WarrenBelz 187 Most Valuable Professional