cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ra1449
Regular Visitor

PowerApp Custom PCF OnChange does not trigger.

How can I get the OnChange property to trigger.  Do I need to somehow register the  OnChange event?  If so, how?

1 REPLY 1
DianaBirkelbach
Super User
Super User

Hi @ra1449 , 

 

From inside the PCF you need to call the notifyOutputChanges(). The runtime will call the PCF "getOutputs" method, where you can pass the new value(s).

On the form you can use the control as any other one, and register to onChange events as usual.

 

Maybe you would like to check the PCF architecture too, for more details: https://docs.microsoft.com/en-us/learn/modules/get-started-component-framework/2-architecture?WT.mc_...

 

 

Hope this helps!

 

Kind regards,

Diana

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (3,784)