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 / Form not displaying se...
Power Apps
Answered

Form not displaying selected item from gallery / Delete button not working in gallery

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

On this page of my app, I have gallery and an Edit Form. The OnSelect formula for the pencil icon is in the screenshot. When the pencil icon is pressed, I would like the edit form to populate the data. This typically works when you set the form to, for example, "Coursegallery.selected", but it's not working this time and I wonder if it has anything to do with using a variable. Also, my delete (trash can) button is not deleting the items either (formula - Remove('Courses',ThisItem) )

 

(The add new course button make a new form visible and the pencil icon makes the edit form visible). Any idea why the data is not populating?

 

CourseEditForm.jpg

Categories:
I have the same question (0)
  • Verified answer
    tchin-nin Profile Picture
    779 on at

    Hi @Anonymous

     

    So you want to edit the Course in the form on the right side of the gallery right ? The Navigate function is used to navigate from a screen to another, so if you want to stay on this screen, this is not the right formula. I would use a variable to speciffy to the form wich item to display :

     

    Pencil.OnSelect : Set(selectedCourse,ThisItem);EditForm(EditForm1)

    EditForm.Item : selectedCourse

     

    Also, you don't need to have one form for new, one form for editing, you can use the same form and just defined if its new or edit state.


    NewButton.OnSelect : NewForm(EditForm1)

     

    For the removal, your formula looks good. what happen when you click on the trash bin ?

     

    Théo

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    This worked perfectly! I had to remove the gallery and add it back with your suggestions along the way. Thank you!

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
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 136 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard