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 / Resetting value on tex...
Power Apps
Answered

Resetting value on text input field after submission not working \ Set variable to blank after form submission

(0) ShareShare
ReportReport
Posted on by 85

I have a text input field in my canvas form formatted as number. As the default value I'm using a variable named varPayInput. For the OnChange event of that field I'm using the following formula:

 

UpdateContext({varPayInput: Text(Value(DataCardValue7.Text), "$#,##0.00")})

 

This formats the field to currency after someone inputs an amount, and it works beautifully, however, when the record gets submitted the amount previously input doesn't go away. I'm assuming it has to do with the variable, but I'm not sure how to remove it. I've tried various how to's from Google to no avail.

Categories:
I have the same question (0)
  • Verified answer
    BCBuizer Profile Picture
    22,579 Super User 2026 Season 1 on at

    HI @ShawnPelletier ,

     

    In the OnSuccess property of the form you need to set the variable to blank:

     

    UpdateContext({varPayInput:Blank()})

     

    By using the OnSuccess property you are certain the form is successfully submitted before resetting the variable.

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 525 Most Valuable Professional

#2
Haque Profile Picture

Haque 273

#3
Kalathiya Profile Picture

Kalathiya 232 Super User 2026 Season 1

Last 30 days Overall leaderboard