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 / Submit Form Button cha...
Power Apps
Unanswered

Submit Form Button changes the selected item on the Gallery to the first one

(0) ShareShare
ReportReport
Posted on by 8

Hi,

 

I have a gallery with an option to edit some of the items on it.

When i click an item, a form opens to be able to edit this item, the problem I am having is that after pressing the "Submit" button, that also executes a Power Automate, the Item showing in the form becomes the first in the Gallery.

 

Is there a reason for it to happen? is there a workaround to this issue? My users are highly bothered by this

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,925 on at

    If your issue is about the Gallery on the First item, create a variable on the OnSelect of the Icon Inside the Gallery:

    Set(MySelection,ThisItem)

     

    Then in the Default of the Gallery put:

      MySelection

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

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

    Hi@JoanRuiz,

    Based on the issue that you mentioned, it is a known issue in EditForm.

    In general, it seems that setting a global variable is a viable solution. I agree the most with @eka24, but there is something different between ours.

    I have a test on my side, please take a try as below.

    Set the OnSelect property of the Arrow icon inside the gallery as below

     

    Set(varSelected, ThisItem.ID)

     

    Set the Item property of the EditForm as below

     

    LookUp('20200629Test',ID=varSelected)

     

     Best Regards,

    Qi

  • JoanRuiz Profile Picture
    8 on at

    Hi @v-qiaqi-msft 

    Thank you for your help, but I am not able to replicate your solution,

     

    If I understand PowerApps correctly, I have to set the following code to the OnSelect of the Gallery:

     

    Set(varSelected; ThisItem.ID ) ;; Navigate(ADMIN_Simple_FormulariLectura_NuevoFormulario)

     

    PowerApps is not recognizing the property "ThisItem", Am I doing something wrong?

     

    @v-qiaqi-msft wrote:

    Hi@JoanRuiz,

    Based on the issue that you mentioned, it is a known issue in EditForm.

    In general, it seems that setting a global variable is a viable solution. I agree the most with @eka24, but there is something different between ours.

    I have a test on my side, please take a try as below.

    Set the OnSelect property of the Arrow icon inside the gallery as below

     

     

    Set(varSelected, ThisItem.ID)

     

     

    Set the Item property of the EditForm as below

     

     

    LookUp('20200629Test',ID=varSelected)

     

     

     Best Regards,

    Qi


     

  • eka24 Profile Picture
    20,925 on at

    It should be on the OnSelect of the icon or button inside the Gallery, not the gallery itself

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

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
Vish WR Profile Picture

Vish WR 414

#2
Valantis Profile Picture

Valantis 387

#3
timl Profile Picture

timl 344 Super User 2026 Season 1

Last 30 days Overall leaderboard