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 / Cannot use OnSelect() ...
Power Apps
Unanswered

Cannot use OnSelect() in OnVisible when navigating to a new page, due to container limitations.

(0) ShareShare
ReportReport
Posted on by 10

I am trying to add a rather simple function: a user can select a name on Page A, it will navigate to the relevant screen and display that individual's data by selecting them from the existing gallery on Page B.

 

I can pass the variable and selection between screens using the normal navigate function. In my OnVisible of the receiving page, i then check to see if that variable exists and then respond accordingly. The last step of this is to Select the gallery, which in turn does everything to pull the remaining data and display relevant elements on the screen. 

 

Unfortunately, PowerApps seems to specifically prevent this sort of functionality. I have tried creating a hidden button within the container to run the Select, i have moved it directly into the gallery itself, etc. but every attempt yields this error. 

 

How can I work around these limitations? I have the data passing between screens, I just need to trigger the selection within the gallery so that the rest of the page can behave properly. 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,972 Most Valuable Professional on at

    Hi @fewfweoafuweioa ,

    Please share the code you have attempted (in Text) and the result of this. Also what do you have in the Default of the Gallery and the Item of the Form ?

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 305 Most Valuable Professional

#2
11manish Profile Picture

11manish 212

#3
Valantis Profile Picture

Valantis 167

Last 30 days Overall leaderboard