Skip to main content

Notifications

Power Apps - Building Power Apps
Suggested answer

How to trigger a button's OnSelect that is in a component?

(0) ShareShare
ReportReport
Posted on by 2
Hi, I have a button in my component. I would like to trigger that button's OnSelect property using Select() function. I added event property (OnSelect) on the component, but I still can't trigger the button click on screen. The OnSelect is already working when clicking the component manually, but it is giving error "Select of a control that doesn’t have an OnSelect property" when using Select().
  • Suggested answer
    CU14010608-0 Profile Picture
    CU14010608-0 2 on at
    How to trigger a button's OnSelect that is in a component?
    I solved it but please feel free to give other approach on doing this.
     
     
    In my component, I added output property as Action type named TriggerSelect
    MyComponent.TriggerSelect = Select(button_to_select)
    When I want to trigger a button click, I use MyComponent.TriggerSelect()

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,343

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard