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 / New Form - Gallery res...
Power Apps
Unanswered

New Form - Gallery resets default on save to nothing

(0) ShareShare
ReportReport
Posted on by

I would like a new form to display the last submitted record after saving the new record successfully.

So, I have on the Form OnSuccess property :

Set(varProjGalActiveItem, frm_Projects_Edit.LastSubmit)

Similarly on the Gallery which is connected to the form, I have on the Default property:

varProjGalActiveItem

However, when I save a new record, the gallery resets to displaying nothing (and similarly, the form)

Is there a way to display the last submitted record after saving a new record?

Thanks!

Categories:
I have the same question (0)
  • Digital Profile Picture
    1,207 on at

    Hi @BertP ,

     

    Is the datasource connected to your gallery and form the same? What is in the Items property of your gallery and DataSource property of your form? 

  • BertP Profile Picture
    on at

    Thanks @Digital 

     

    Yes, the datasource of both the gallery and form are the same: "Projects_1"

     

    The Items property of the gallery is a four stage filter:

     

    Sort(
     Filter(
     Projects_1,
     inp_ProjectSearch.Text in 'Project Name' || inp_ProjectSearch.Text in Customer,
     'Opportunity Status'.'Projects Home Default Display' <> varProjectsFilter,
     IsBlank(cmb_ProjectStatus.Selected.'Opportunity Status Name') || 'Opportunity Status'.'Opportunity Status Name' = cmb_ProjectStatus.Selected.'Opportunity Status Name',
     IsBlank(cmb_State.Selected.'State Abbreviation') || State.'State Abbreviation' = cmb_State.Selected.'State Abbreviation'
     ),
     'Approx. Close',
     Ascending
    )

     

    Hmmm, if I change the Items property of the gallery to:

     

    Projects_1

     

    Then the form/gallery behaves as expected. After creating a new form, it also displays the new entry... So I guess the sort or the filter is messing with the gallery default display & connected form behavior? Is there any way around that?

     

    And the datasource property of the form is:

     

    Projects_1

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 893

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 482

Last 30 days Overall leaderboard