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

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Resetting Variable in ...
Power Apps
Unanswered

Resetting Variable in Powerapp Form

(0) ShareShare
ReportReport
Posted on by
Hello experts,
 
I have a sharepoint page where employees log the times they start each operation for each work order. My goal is to make a form where they can enter all the information easily. It is one that would have to be opened multiple times to get the start and stop times for different ops. I have a button that fills each time entry with the current time upon clicking. This works well. Each cell works on different buttons for different times, and all of those are controlled with variables. Basically variable op1start is set to "" on visible for formscreen1, and when the button is clicked it is given a variable. The time cells work off the following formula: 
If(MaskStop="",Right(Left(Parent.Default,5),2),Text(Minute(Now()),"00"))
This all works great the first time. The issue I have is after the form is closed, if you click NEW, when the new form opens the variables have not reset, so the time boxes that were filled in the last use now autopopulate with the current time. I have tried adding Set(Var, "") to multiple places as well as resetform(formscreen1) on save, on new, on success, everywhere I can think of, and none of them have helped. By all accounts a Set(var,"") at either on save, on new, or on visible, ought to do it. Is there something special about it being a form rather than an app? Any ideas of what I am missing?
 
Thanks!
Curtis
Categories:
I have the same question (0)
  • ronaldwalcott Profile Picture
    3,847 Super User 2025 Season 2 on at
    Resetting Variable in Powerapp Form
    Where do you set the variables

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard