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 / Form getting reset on ...
Power Apps
Unanswered

Form getting reset on failure

(0) ShareShare
ReportReport
Posted on by 2

Hi Team,

 

I have modified the SharePoint form using PowerApps and also have a associated remote event receiver event on item updating to check some validation such as permissions and other scenarios. If a validation is failing,  error message is being returned from the remote event receiver to PowerApps form. I am capturing the error message and showing notification to users using the notify function and its working perfectly fine but form is getting reset. In case of any error, all the field are getting reset to original value even if I have not used reset function anywhere, Ideally it should maintain the error-causing values so that user can manually correct the values.

 

 

Categories:
  • v-albai-msft Profile Picture
    Microsoft Employee on at

    Hi @Rakesh_Chhillar ,

    From your description, I know that your validation function works after user submit their request.

    If yes, you can try to remove ResetForm(Self) function on OnSuccess property of SharePointFrom1, set its to false:

    v-albai-msft_1-1622100065245.png

    Note: above setting will have an affect: after create a qualified record, the form still will not reset. So if this user want to continue to create another record,  he needs to close current form window and re-open a new form window. (I cannot think of a better way since you add a validation function)

    Best regards,

    Allen

  • Rakesh_Chhillar Profile Picture
    2 on at

    I tried that but it did not work, and OnSuccess function is not being called, only failure function is being executed

  • v-albai-msft Profile Picture
    Microsoft Employee on at

    Hi @Rakesh_Chhillar ,

    Will this incorrect item be saved into your list if user received notification?

    Best regards,

    Allen

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 239

Last 30 days Overall leaderboard