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 / I would like my recent...
Power Apps
Unanswered

I would like my recent submission to stay populated in the data fields rather that going into the gallery to choice the submission to populate

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I currently can submit a form and post submission all data fields fill up to a previous submission. But I would like the data fields to stay populated with what the last submission is of the submitter, so that they can export to pdf (which is a separate flow) and so that they wouldn't have to go back into the gallery to find their submission.  Form is currently in edit mode. 

 

Submit button code is only: SubmitForm(Form2) 

 

Also, how do I get rid of a random submission populating the fields after the last submission. Within the screenshot, "Terry Whin" is not the latest submission. Not sure why it's being populated. I didn't choice Terry within gallery. Thank you!

fow 22.png
Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous :

    Do you want to get the last submit record?

    Do you want to make the form show the last submit record?

    Is the form’s item depend on the selection of the gallery?

    I assume the above assumption holds.

    Firstly, I have two solutions to get the last submit record.

    1\Call the form’s LaseSubmit property.

    LastSubmit â€“ The last successfully submitted record, including any server generated fields.

    • This property applies only to the Edit form
    • If the data source automatically generates or calculates any fields, such as an IDfield with a unique number, the LastSubmit property will have this new value after SubmitForm successfully runs.
    • The value of this property is available in the OnSuccess

    2\Use the standard field "Modified" (SharePoint) Or "Modified On" (CDS)

    These fields hold the last modification time of the record. Just use the following code to call your recently modified data.

    First(Sort(yourdatasource, "Modified On",Descending))

    Secondly, here is my solution to make the form show the last submit record.

    The key is to set Gallery's default options and reset Gallery.

    The gallery(Gallery1)

    Default:

    First(Sort(yourdatasource, "Modified On",Descending)) /* When the gallery is reset, it will select the latest modified record by default*/

    The submit button:

    OnSelect:

    SubmitForm(Form2) ;Reset(Gallery1) /* Reset this gallery, it will select the latest modified record by default*/

    The Form:

    Item:

    Gallery1.Selected

     

    Best Regards,

    Bof

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 387

#2
timl Profile Picture

timl 340 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 301

Last 30 days Overall leaderboard