cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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

@Anonymous 
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.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
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

@Anonymous 
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.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

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

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (1,339)