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
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (2,031)