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 / using onSelect in a Ga...
Power Apps
Unanswered

using onSelect in a Gallery

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a gallery and I want to use the onSelect feature

 

When the gallery pulls from a CDS, it works fine, but when it pulls from a collection, it doesn't work.

 

Is that normal? 

Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @morall 

    Can you describe more about what you are seeing?  There is no difference using the OnSelect based on the datasource.  However, what you do in your OnSelect could be completely different.

    If you are having problem with a particular Formula, feel free to reply back with it.

     

    I hope this is helpful for you.

  • morall Profile Picture
    Microsoft Employee on at

    I created a gallery, set my data source to be a CDS

     

    then set onSelect to be Notify("test"), that worked

    changed the data source to be a collection, notify stopped working. 

  • morall Profile Picture
    Microsoft Employee on at

    ok weird, its working now. 

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

    @morall 

    There are several things that have to happen for the OnSelect to "fire".

    - the gallery needs to be in Edit displaymode.

    - the control you are clicking on in the gallery needs to have its OnSelect set to Select(Parent)

    - and of course, the OnSelect of the Gallery needs to have the formula you want

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard