cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Rakesh_Chhillar
New Member

Form getting reset on failure

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.

 

 

3 REPLIES 3
v-albai-msft
Community Support
Community Support

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
New Member

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

Hi @Rakesh_Chhillar ,

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

Best regards,

Allen

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors
Top Kudoed Authors
Users online (2,446)