cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nikitamadhyan
Level: Powered On

Reset contents of textbox everytime page is loaded

I've created an application where the contents of texbox are not getting refreshed even if I am reloading page.

I want the textbox should appear empty everytime the page is loaded.

How this can be done?

4 REPLIES 4
Dual Super User
Dual Super User

Re: Reset contents of textbox everytime page is loaded

Hi @nikitamadhyan 

 

You can set the "OnVisible" property of the screen as:
 
Reset(TextInput1)
 
Here, TextInput1 is the name of control.
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
Community Support Team
Community Support Team

Re: Reset contents of textbox everytime page is loaded

Hi @nikitamadhyan ,

Do you want to reset the context of the Text Input box when the page/screen is loaded everytime?

 

Based on the needs that you mentioned, I think a global variable could achieve your needs. I have made a test on my side, please take a try with the following workaround:

Set the OnVisible property of the current screen (which contains the Text Input box) to following:

Set(IsReset, false);
Set(IsReset, true)

Set the Reset property of the Text Input box to following:

IsReset

Please take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
nikitamadhyan
Level: Powered On

Re: Reset contents of textbox everytime page is loaded

It is not working can you please explain with screenshots

Community Support Team
Community Support Team

Re: Reset contents of textbox everytime page is loaded

Hi @nikitamadhyan ,

Please consider take a try with the following screenshot for more details:11.JPG

 

12.JPG

When the Page2 screen is visible, the Text Input box would be reset/cleared.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Kudoed Authors (Last 30 Days)
Users online (5,634)