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 / EditForm displaying di...
Power Apps
Answered

EditForm displaying different item after submit

(0) ShareShare
ReportReport
Posted on by 61

Hi guys.

I'm facing a problem when using my edit form.

The App shows articles written by users. First, they select an item in the gallery and get navigated to the details screen which displays the Content of the Article.

 

If the current User is the writer of the article, an icon, which navigates to the edit screen, is shown.

 

So far so good.

 

After I edit the article and user my save button, which submits the form, the edit form suddenly displays another item (first one) of the gallery and doesn't keep the previous one 

 

does someone know a way to keep the same item after submitting?

Categories:
  • Verified answer
    BCLS776 Profile Picture
    8,994 Moderator on at

    Yes, you can edit the Item property of the form to refer to: Form1.LastSubmit

     

    Hope that helps,

    Bryan

  • Verified answer
    JulianM Profile Picture
    61 on at

    @BCLS776 thank you for your fast response! 

     

    If(isBlank(Form.LastSubmit);
    Gallery.Selected;
    Form.LastSubmit)

     

    this did the job! Thank you

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @JulianM 

    As an FYI!!

     

    This is a great opportunity to get acquainted with the Coalesce function.

       Coalesce(Form.LastSubmit, Gallery.Selected)

    Will provide the same results as your If statement...with a lot less repetition of typing!

    Coalesce returns the first parameter that is not blank.

     

    Hope this is informative and helpful for you.

     

  • JulianM Profile Picture
    61 on at

    Perfect! Thank you very much @RandyHayes !

    That‘s very handy

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard