web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Reset function and var...
Power Apps
Answered

Reset function and variable in text field

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello together,

actually i have two easy questions. Easy for you, but unfortunately not for me 😉

1.) I would like to reset a label with the name test. If i want to reset a text field then i just do this: Reset(test)
but for a label it doesnt works?

2.) I have a text field "test" and i want to fill it with a variable. I do this: test.text =  myvariable
but it doesnt works?

Thank you for the help

Categories:
I have the same question (0)
  • LeeHarris Profile Picture
    1,026 on at

    Hi @Anonymous 

    Im not sure you can Reset a label control. From my understanding, the Reset function is primarily for input controls.

    With regards to filling the Text field "test", if this is a Text Input simply change the Default property of this control to be "myvariable" (if this is a Label control then set the Text property to "myvariable"). You cannot directly set properties of the controls at runtime but you can update the variables that they refer to.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @LeeHarris 

    thank you for the reply,

    "Im not sure you can Reset a label control. From my understanding, the Reset function is primarily for input controls."
    Ok, thank you for the information.

    I could change the Default property from the text field but i want to reset all the text fields,
    if i change the screen.

    With the other text fields without Default property it works!!
    Just Reset(test1);;Reset(test2);;Reset(test3)

    The text field test4 has a default property and it doesnt works
    I close the Screen and open again.... all the other fields are clear except field test4 😞

    What can i do?

    Thank you again


  • Verified answer
    LeeHarris Profile Picture
    1,026 on at

    Hi @Anonymous 

    Any text field that is displaying the content of the variable "myvariable" will continue to show whatever value is stored in this even if you reset the control. By updating the variable "myvariable" to a blank string this will effectively remove the default value.

     

    As an aside, if you want to Reset multiple controls at once you can use a true/false variable in the Reset property of the control. Then simply "toggle" the variable on and off to trigger the reset. Details on how to achieve this can be found at https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-reset

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi@LeeHarris 

    Thank you very much. I will try to do this..


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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 519 Most Valuable Professional

#2
11manish Profile Picture

11manish 489

#3
Haque Profile Picture

Haque 327

Last 30 days Overall leaderboard