Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

How to rest all global variable?

(0) ShareShare
ReportReport
Posted on by 634

I have a form where I am setting a variable to the value of the field. When the form is submitted those variables still have their values so when I go back to the form to make the next entry the form is blank(reset) but the variables still have their values.

 

I can use the following on the submit button which works for a single variable

 

Set(variable, Blank())

 

 

Problem is that I have 20 variables I need to reset. is my only option to do the following or is there a more inclusive way to reset all global variables?

 

 

Set(variable, Blank()); Set(variable2, Blank()); Set(variable3, Blank())......

 

Categories:
  • Pstork1 Profile Picture
    65,997 Most Valuable Professional on at
    Re: How to rest all global variable?

    Other than exiting and re-loading the app I'm not aware of any way to globally reset all the variables with one statement.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard