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 / 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

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!

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    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

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 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard