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 / How to clear a form
Power Apps
Answered

How to clear a form

(0) ShareShare
ReportReport
Posted on by 121

Hi Community, 

 

I am creating an expense claim form with Powerapps. In this screen which is the expense report header screen, the idea is that when I click on "Create", it should firstly clear the form and bring me to the next screen (second screenshot below) for me to key in the individual line items. However the form does not clear when I hit "Create".

Expense.PNG

 

In this screen, i.e. the line item screen, when I click on "Save & Create New Line Item", it should clear the form and allow me to enter the subsequent line items. "Save" button should clear the form as well and bring me to a summary screen of all line items created. Same as above, when I click on either buttons, the form does not clear. 

newlineitem.PNG

I'm using ClearCollect(DefaultRecord, "").  The datasource is a SharePoint list "Expense_Report2".

 

Kindly advise. Thank you for your help.

Categories:
  • Verified answer
    timl Profile Picture
    37,287 Super User 2026 Season 2 on at

    Hi @elleeyl 

    You can clear the text input input controls by using the Reset property of the text input controls. Taking the header screen as an example, you can set a variable value to true, and then back to false. Here's what you would add to the formula in your 'create' button, just before the call to Navigate.

    UpdateContext({clearHeaderScreen:true});
    UpdateContext({clearHeaderScreen:false});

    For each text input control on your screen, you would set the Reset property to clearHeaderScreen.

    When you now click the create button, the text input controls should clear.

     

  • elleeyl Profile Picture
    121 on at

    Thanks, @timl ! It works now! 🙂

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard