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
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (4,884)