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 form after submit
Power Apps
Unanswered

Reset form after submit

(0) ShareShare
ReportReport
Posted on by 57

I am currently working on a form for creating new items in a SharePoint List. On the form there are a couple of DataCards that record the time as text by click on a button. However, once I submit the form and want to start a new form the previous data/time are still visible. While the other data that does not have a button are cleared.

 

See as example the Door Open

 

Sebastiaan1_2-1674582069279.png

 

Set Time Button 

UpdateContext({DoorOpen: Text(Now(),"hh:mm")});

 

Card Door Open

If(
 EditForm3.Mode=FormMode.New,
 DoorOpen,
 Parent.Default
)

 

Submit Button - OnSelect 

SubmitForm(EditForm3);

 

Form - OnSuccess

Set(
 varLastRecord,
 EditForm3.LastSubmit
 );
Office365Outlook.SendEmailV2
 ("email@email.com",
 $"*** Flight Report: {varLastRecord.Flight.Value} {varLastRecord.Date}",
 $"Date: {varLastRecord.Date} 
 </br>Flight: {varLastRecord.Flight.Value}
 </br>Stand: {varLastRecord.'Stand'}
 </br>Door Open: {varLastRecord.'Door Open'}"
 );
 ResetForm(EditForm3);
 Navigate(Home);

 

Form OnReset

Set(varLastRecord, Blank())

 

I am guessing I need to issue something else in addition to just navigating to home and to start a fresh form. What would I need to add in this case?

Categories:
  • Bilakanti Profile Picture
    1,226 on at

    @Sebastiaan1  Set your dooropen local variable to blank on reset.

  • Sebastiaan1 Profile Picture
    57 on at

    @Bilakanti Thank you! Probably a very silly question, how would you suggest to place this code?

    (still learning with powerapps)

  • Bilakanti Profile Picture
    1,226 on at

    @Sebastiaan1  - Form On Reset add this line of code 

    UpdateContext({DoorOpen: Blank()}) 

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard