cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KingDumb
Helper I
Helper I

Text Field Not Updating with OnSave

I have a PowerApps form that utilizes 3 screens and on my default screen there is a project % field that is calculated by adding the percentages of 2 other fields across 2 different screens.  When I save the form I am utilizing patch to combine the screens into one list item.  However, if a user savers the form while on a different screen than the default screen with the project % field, then the project % field will not be updated. The default screen has the project % field on it, so if I open the ticket and hit save the project % is then updated.  Is there anyway to fix the issue of the project % not being updated when saving on a different screen?

 

Thank you for any and all help.

 

If( FormDefault.Mode = FormMode.New && FormScreen2.Mode = FormMode.New && FormScreen3.Mode = FormMode.New, Patch(List1, Defaults(List1),  FormScreen2.Updates, FormScreen3.Updates, FormDefault.Updates), If(FormDefault.Mode = FormMode.Edit && FormScreen2.Mode = FormMode.Edit && FormScreen3.Mode = FormMode.Edit, Patch(List1, SharePointIntegration.Selected, FormScreen2.Updates, FormScreen3.Updates,FormDefault.Updates))); RequestHide(); ResetForm(FormDefault); ResetForm(FormScreen2); ResetForm(FormScreen3)

 

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@KingDumb 
Since you are splitting your form across multiple screens, you should try to maintain the functionality of your EditForms.  Using a Patch on the form updates will not do this and you lose a lot of the functionality of the form.

I would suggest taking a look over my video on splitting forms across screens while not losing the functionality.  Then, the next thing to do is to get rid of the save option in the SharePoint default screen.  You would do this by removing the formulas in the OnSave (perhaps instead pop up a notice to tell the user to submit after all screens are completed) and then implement a "Save" button on your last screen.

 

I hope this is helpful for you.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

1 REPLY 1
RandyHayes
Super User
Super User

@KingDumb 
Since you are splitting your form across multiple screens, you should try to maintain the functionality of your EditForms.  Using a Patch on the form updates will not do this and you lose a lot of the functionality of the form.

I would suggest taking a look over my video on splitting forms across screens while not losing the functionality.  Then, the next thing to do is to get rid of the save option in the SharePoint default screen.  You would do this by removing the formulas in the OnSave (perhaps instead pop up a notice to tell the user to submit after all screens are completed) and then implement a "Save" button on your last screen.

 

I hope this is helpful for you.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,764)