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 / Power App Control Rese...
Power Apps
Answered

Power App Control Reset Issues

(0) ShareShare
ReportReport
Posted on by 7

I have a single screen PowerApp form entry app that writes to a SharePoint list. It has a couple of drop downs that I populate from Sharepoint lists. I then also have a form on the page that is pointing at my main sharepoint list. The user selects values from the drop downs, enters some text into text boxes in the form. When they hit submit I then update some hidden text fields with values from the drop down and submit the form. The page then reloads for the user to make another entry All this works great. The issue comes up when resetting the drop down controls. 

 

If I just submit the form and create new form all the fields in the form are reset but the drop downs retain their value

If I add reset commands after the form submits to reset the drop downs there is a problem if the user fogets to complete a mandatory field - error messages are displayed correctly but the commands to reset the drop down still executes and the user has to go back and reselect values.

 

So I need to find a way to only reset the drop downs if the form submits without any error messages before it loads the new reset screen. Anyone know how I can wrap the resets in an IF statement or is there somewhere else I can put the reset commands for the drop downs so it only resets if the form submits sucessfully without any errors.

Categories:
I have the same question (0)
  • Verified answer
    mdevaney Profile Picture
    29,991 Moderator on at

    @pdelahunty1 

    I would suggest putting the RESET commands in the OnSuccess property of your form instead of using them in an IF statement.

    OnSuccess: Reset(myDropdown1);Reset(myDropdown2);Reset(myDropdown3);

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up." 

  • pdelahunty1 Profile Picture
    7 on at

    WOW - what an elegant solution. THANK YOU SO MUCH 

  • mdevaney Profile Picture
    29,991 Moderator on at
    Thanks, elegant solutions are what I strive for!

    Best of luck in building 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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard