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 / My form reverts back t...
Power Apps
Answered

My form reverts back to an older record when I submit it.

(0) ShareShare
ReportReport
Posted on by 39

Hello all,

 

I'm going to try to be as detailed as I can. I have a gallery called galAvGas. I then have an edit form where the item property is galAvGas.selected. All that works fine. I have a submit button that is just a SubmitForm(formeditAvGas) OnSelect. It seems like the record will typically stay on the last submitted record when I am editing a record. It's when the form is in new mode is where my issue mainly happens. I have a new record button that says EditForm(formeditAvGas);Navigate(AvGasEdit, ScreenTransition.Cover). When I submit that it reverts back to a previous record. How can I stop that from happening? When they submit the form, it needs to stay on the current record until they go back manually. I have tried following another website that set a variable as .lastsubmitted but i had to change the gallery's item property to that variable so it was no longer pulling up the correct record when I would select it in the first place. I could really use some help. Thanks!!

Liquid error: Exception has been thrown by the target of an invocation.Liquid error: Exception has been thrown by the target of an invocation.Liquid error: Exception has been thrown by the target of an invocation.
Categories:
  • Verified answer
    zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    On the button in your gallery where you navigate to the form. 

    OnSelect: Set(varItem,ThisItem);

    Form item property:

    varItem

    onSuccess of the form:

    Set(varItem,FormName.LastSubmit);

    Liquid error: Exception has been thrown by the target of an invocation.Liquid error: Exception has been thrown by the target of an invocation.Liquid error: Exception has been thrown by the target of an invocation.
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @bm94

    New Record button: NewForm(formeditAvGas)

    Liquid error: Exception has been thrown by the target of an invocation.Liquid error: Exception has been thrown by the target of an invocation.Liquid error: Exception has been thrown by the target of an invocation.
  • Liquid error: Exception has been thrown by the target of an invocation. bm94 Profile Picture
    39 on at

    Thanks for your reply! for some reason I usually get email notifications, but i didn't this time and just assumed no one responded to me. So, when you say "button I use to navigate to the form" I essentially have 2. I have the NEW RECORD button that is NewForm(formeditAvGas);Navigate(AvGasEdit, ScreenTransition.None) and I have the gallery record itself where the On Select property is EditForm(formeditAvGas);Navigate(AvGasEdit, ScreenTransition.Cover) Where would I need to put your change at? and is there anything I should take away?

    Liquid error: Exception has been thrown by the target of an invocation.Liquid error: Exception has been thrown by the target of an invocation.Liquid error: Exception has been thrown by the target of an invocation.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard