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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / When I save using Subm...
Power Apps
Unanswered

When I save using SubmitForm the form shows the previous entry instead of the one just saved.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello Community,

 

I have a PowerApp that is based on a simple SharepointForm. The first screen has a gallery called galLocations in which the user can select a previous entry or click on a "create new form" button that allows him to enter a new form on the second screen. The second screen contains the Form which as Item has galLocations.Selected.

 

The issue I have is that when I submit a newly created form through a save button with SubmitForm that the Form displays one of the previous records instead of the newly created form. This issue just appeared today in my app and I cannot find a suitable solution.

 

Help would be greatly appreciated!

 

Best regards,

Tim

Categories:
I have the same question (0)
  • Chris-D Profile Picture
    1,246 on at

    This is happening because after the form is submitted, it reverts to displaying the data from galLocations.Selected

     

    In the form OnSuccess use the Back() function, then the user won't see the data after submit. The screen should navigate back to your Gallery page with the new data added to the gallery. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for your reply Chris-D. The only thing is that I want the user to use the save button as a temporary save ability. So that whilst the user is working on the form he/she can save in between whilst staying on the same page.

     

    Do you know a way to achieve this?

  • Chris-D Profile Picture
    1,246 on at

    Sure, create a record variable and point your form to that. 

     

    Gallery OnSelect:

    UpdateContext({ FormData: ThisItem});

     

    Form OnSuccess:

    UpdateContext({ FormData: Self.LastSubmit});

     

    Then point your form at FormData instead of galLocations.Selected

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 333 Most Valuable Professional

#2
11manish Profile Picture

11manish 184

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 86 Super User 2026 Season 1

Last 30 days Overall leaderboard