web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Add an OnSelect Proper...
Power Apps
Answered

Add an OnSelect Property to a PCF for canvas apps

(0) ShareShare
ReportReport
Posted on by 20

Any can point me to right direction on how to add an onSelect Property in a PCF for canvas apps?

I have the same question (0)
  • Verified answer
    cchannon Profile Picture
    4,702 Moderator on at

    Yes, you can now add any arbitrary "events" to your PCF control with the actions to be defined in PowerFx in your hosting Canvas App. All you need to do is declare the Event in your Manifest and it will become an available event property in the Component when you register to the Canvas App. Then you call the corresponding function from in your PCF code when the event criteria are satisfied and the corresponding PowerFx will be executed.

     

    @DianaBirkelbach wrote a great walkthrough of this just a couple months back: PCF Custom Events – Sneak Peak – Dianamics PCF Lady (wordpress.com)

     

  • Verified answer
    a33ik Profile Picture
    3,306 Most Valuable Professional on at

    Hello,

    I used the approach described in the following article and it worked fine for me - https://98.codes/a-workable-pattern-for-pcf-events-you-can-use-today/

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard