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 / First record appearing...
Power Apps
Answered

First record appearing after SubmitForm

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

I'm having the following issue. I currently have a form connected to a SharePoint database. I'm able to submit forms and have them successfully reflected in the database. However, in the form itself, whenever a new form is filled out and submitted, the record changes to reflect the first record in the database. Yet, the submitted record successfully reflects in the database and gallery. In other words, when I click the 'Submit' button, the form is successfully submitted but users are re-directed to the first record, rather than viewing what they just submitted.

 

This is my formula for the OnSelect of the Submit button:

SubmitForm(EditForm1); ViewForm(EditForm1); Navigate(EditScreen1); Set(ShowDeleteConfirm2, false); Set(ShowDeleteConfirm1, true)

 

Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    What is the Item property of your EditForm?

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi@rodrkayl,

    Based on the issue that you mentioned, do you want to fill the form with the lately submitted record?

    Could you please share a bit more about the Item property of the EditForm1?

    How you set the Item property of the form will decide what it displays.

    You could consider setting the OnSuccess and Item property of the EditForm1 as below:

     

    Refresh(ListA) // OnSuccess property 
    First(Sort(ListA,Created,Descending)) // Item property

     

    Hope it could help.

    Best Regards,

    Qi

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 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard