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 / Error when Selecting a...
Power Apps
Answered

Error when Selecting a control with OnSelect set

(0) ShareShare
ReportReport
Posted on by 99

Hello,

 

I have an app with an OnStart formula to select a gallery:

 

Select(FilterGallery_1)

 

In the Gallery's OnSelect code I have this:

 

UpdateContext({dept:ThisItem.AccountNameTypes})

 

The context variable is used to adjust a filter on a gallery showing my content. There are 3 galleries of choices, each affecting a context variable.

 

When the app loads these context variables are blank, so the content gallery starts off blank too. I'm trying to select the choice galleries on start to trigger the variables to be set. However I get this error from OnStart - "Select of a control that doesn't have an OnSelect property".

 

The galleries do have this property set though so where am I going wrong?

grab.png
Categories:
I have the same question (0)
  • Verified answer
    ChrisBenJohnson Profile Picture
    99 on at

    Nevermind, I've solved it by adding IsBlank checks into the If statement that controls the content in the main gallery.

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 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard