web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / power apps form with D...
Power Apps
Unanswered

power apps form with DataSource does not update entries after FormSubmit() and change to FormView()

(0) ShareShare
ReportReport
Posted on by

I do not understand what is going on here.  I've read online that forms with DataSource, on submit should automatically update themselves.  This is connected to sharepoint list, and I've verified the data, it does in fact get updated.

 

This shouldn't be complicated.  We have a form that is EditFormSAF which its DataSource points to a SP list.  SubmitForm() the entry gets updated, then ViewForm() to change the form back to View or read only to show the data, however the new data entries are not showing and it is showing the old entries.

 

If I leave this screen and go back to it, I can see the new data.  Why isn't the new data updating?

 

SubmitForm(EditFormSAF);
ViewForm(EditFormSAF);

Categories:
I have the same question (0)
  • timl Profile Picture
    36,383 Super User 2025 Season 2 on at

    Hi @gstlouis 

    Just to clarify, are you saying that SubmitForm successfully updates the record, but if you call ViewForm immediately after SubmitForm, it doesn't update the record?

    What I would suggest is that you move the call to ViewForm to the OnSucess property of EditFormSAF. This could help rule out the possibilty of ViewForm interrupting the save process before it has finished.

  • gstlouis Profile Picture
    on at

    @timl 
    thanks for the reply,  I've added more detail to my question.  I've tired putting the ViewForm onSuccess of the form itself.  It has not changed anything, nothing in the form gets updated

  • timl Profile Picture
    36,383 Super User 2025 Season 2 on at

    Hi @gstlouis 

    What's the Item property of your EditFormSAF form? Could it be pointing to a static copy of a record, such as copy that you've saved to a variable? That could possibly explain this behaviour.

  • gstlouis Profile Picture
    on at

    @timl 
    that makes sense.  This form's item prop is pointing to another Gallery from another screen as galDCIProjects.Selected.  Sorry this isn't my code.
    So this is static right?  It pointing to a previous screen gallery.  I should create a var "Projects" and use this i nthe item property, then simply update this varaible once the formsubmit is done?

     

    or what about if I just refresh that gallery?  I didnt' even know we could calls galleries from other screens!?

  • Verified answer
    timl Profile Picture
    36,383 Super User 2025 Season 2 on at

    Hi @gstlouis 

    >>I should create a var "Projects" and use this i nthe item property, then simply update this varaible once the formsubmit is done?

     

     

    This would be the best approach. In the OnSuccess property of the form, you can set the variable to the LastSubmit property of the form and that should solve the problem.

     

    Yes, it's possible to reference galleries from other screens, however, it's not a great practice because it causes a cross-screen dependency. This means that Power Apps isn't able to optimise performance by unloading the gallery screen from memory because a dependency exists between the 2 screens.

  • gstlouis Profile Picture
    on at

    In the end, this form was referring to another gallery.Selected from another screen which was static entry information.  I had to create a variable with this entry, reference this in the item property of the form, and on submit Refresh the table and re-load this variable.  The form now gets its entry updates.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard