Announcements
No record found.
We want to call this JavaScript function from within the PCF control.
Could anyone guide us on achieving this or share any best practices for this integration?
Thank you for the suggestion!
We did explore the approach of using a trigger field and attaching our script to its onChange event. While this works when the user updates the field through the UI, it unfortunately doesn't trigger the onChange event when the field is updated programmatically via JavaScript. Based on our investigation, this behavior is by design, as programmatic updates setValue do not automatically fire the onChange event.
onChange
setValue
If there’s a workaround to explicitly trigger the onChange event after a JS update, or if there's a different recommended pattern when using PCF controls for this kind of scenario, we'd appreciate any insights.
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.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 85
André Arnaud de Cal... 76 Super User 2026 Season 1
Subra 61