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 / Clearing text labels
Power Apps
Unanswered

Clearing text labels

(0) ShareShare
ReportReport
Posted on by 84

Ive looked through several of these. None are helping. I have Text Inputs & Text Labels. Its a calculator. I have sucessfully been able to "reset" my inputs but CANNOT get my labels to clear when a reset button is pressed.

 

Reset button: Reset(PIPESIZE_INPUT);Reset(FLOWRATE_INPUT);Reset(SQUAREFOOT);

Before

Newtothis2023_0-1684429522315.png

After reset button in top right:

Newtothis2023_1-1684429557722.png

Circled is the Squarefoot. This seems it should be simple but nothing ive tried from the web is working.

Categories:
I have the same question (0)
  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @Newtothis2023 ,
    If all the controls are on a single screen, you can use below updated formula in OnSelect property of the buttonn - 

    Reset(PIPESIZE_INPUT);Reset(FLOWRATE_INPUT);Reset(SQUAREFOOT);UpdateContext({resetControls: true})

    OnVisible property of the screen you can use - 

    UpdateContext({resetControls: false})

     In Default/Text property of SquareFoot control, you can use - 

    If(resetControls, Blank(), <Your Default porperty formula which is currenty there>)

     

  • CU16051514-0 Profile Picture
    84 on at

    Newtothis2023_0-1684431309912.png

    Doesnt show when i screen shot but the Squarefoot_1 is not liked, has red line.

    Txt property:
    If(resetControls,Blank(),Text(Value(SQUAREFOOT_1),"[$-EN-us]#.00000"))

     

    Now I cant get my Reset(PIPESIZE_INPUT);Reset(FLOWRATE_INPUT) to clear😅

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @Newtothis2023 ,
    OnSelect property of the Calculate button, set the variable to false - 

    UpdateContext({resetControls: false})

     

     

  • CU16051514-0 Profile Picture
    84 on at

    Newtothis2023_0-1684774080246.png

    Newtothis2023_1-1684774093387.png

     

    Still doesnt reset with that addition.

     

  • CU16051514-0 Profile Picture
    84 on at

    I have no problem getting the Text Inputs to clear, but not a text label. Is it different?

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @Newtothis2023 ,
    Labels are used to display text, so you will have to use below formula in Text property of label control -
    If(resetControls, Blank(), DefaultValueFormula)

    Or you can also use - 
    If(resetControls, "", DefaultValueFormula)

     

  • CU16051514-0 Profile Picture
    84 on at

    I dont get why this is so difficult. That is not working.

    Newtothis2023_0-1684844880906.png

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 342 Most Valuable Professional

#2
11manish Profile Picture

11manish 234

#3
Valantis Profile Picture

Valantis 187

Last 30 days Overall leaderboard