cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BryanSo
Frequent Visitor

Form only updating values when viewed

I have a form where when I select a value, a field on a form on another page is set to the value of the field I just changed.  However it seems like that other form only refreshes its values if I view it.

 

If I just change the value I want to change and hit save, its still the old value.  If I change the field, navigate to the other page the other form is on, then save, then its fine.

 

How do I set it so that the form recalculates without viewing it?

1 ACCEPTED SOLUTION

Accepted Solutions
BryanSo
Frequent Visitor

I tried a number of things but it seems if the user never visits that screen and the form never initializes then nothing matters.

 

This is super frustrating as I'm confident I have setup SharePoint integrated forms in this manner in the past, putting the default form on another screen and updating its values, and using other forms for user interaction to avoid using patch.  As far as I know those forms still function however I cannot seem to get this one to work the same way I have setup forms previously.

 

The way I got this to work is to put the form on a screen the user visits and set it to not visible, so that it at least initializes.

 

I first tried to just have it navigate to that screen before the SubmitForm() however it seemed that it didn't wait for the form to load before submitting.

View solution in original post

3 REPLIES 3
WarrenBelz
Super User
Super User

Hi @BryanSo ,

Yes that is correct - a Form generally will not change values unless you display it to initiate the Default. you might try using the Reset property of the control the value is in and set it to a Global Variable

Set(gblReet, false);
Set(gblReet, true)

then the Reset would be

gblReset

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Visit my blog Practical Power Apps

 

BryanSo
Frequent Visitor

I tried a number of things but it seems if the user never visits that screen and the form never initializes then nothing matters.

 

This is super frustrating as I'm confident I have setup SharePoint integrated forms in this manner in the past, putting the default form on another screen and updating its values, and using other forms for user interaction to avoid using patch.  As far as I know those forms still function however I cannot seem to get this one to work the same way I have setup forms previously.

 

The way I got this to work is to put the form on a screen the user visits and set it to not visible, so that it at least initializes.

 

I first tried to just have it navigate to that screen before the SubmitForm() however it seemed that it didn't wait for the form to load before submitting.

Hi @BryanSo ,

I assume this post can now be closed ?

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.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (4,166)