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

Kind regards,
Diana
----------
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

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

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,956)