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 / PopUp on 'OnCancel' De...
Power Apps
Suggested Answer

PopUp on 'OnCancel' Default button in powerapps form

(0) ShareShare
ReportReport
Posted on by 8

Help pls. New to PowerApps, so pardon the ignorance. How do I customise a SharePoint-integrated Powerapp so that when I click the Cancel button (the default one), all values in the form fields are reset?

At the moment, I click Cancel and the form closes, but when I add a new form, the values that were there before I click Cancel are still there.

  • Suggested answer
    Garima_PowerPlatform Profile Picture
    170 on at
    Hi 
     
    Happy to help! 😊 In a SharePoint-integrated PowerApp, when clicking the Cancel button, you usually want to reset the form fields so that they don't retain any previous data when you open a new form. Here's how you can customize this behavior:
     
    For this you can use reset function in powerapps.
     
    Set the OnSelect property of the Cancel button to include the ResetForm() function
     
    ResetForm(FormName);
    Navigate(BrowseScreen1)  // Adjust the screen name as per your app
     

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 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard