Announcements
Is that possible? If not, why not?
If i have a react button in the pcf control and it needs to show/hide some controls in the form, how can i do that? if i need to do that, does that mean i should not use pcf? but go back to webresource?
Hello,
In a perfect world, PCF control should know nothing about what surrounds it. So no Xrm, no executionContext, and so on.
You can hide other controls from the code of your PCF control - the other thing is that it won't be supported.
I would highly recommend avoiding doing it and implementing your hide/show logic in web resources.
Low tier solution: Since PCF running on webpage, there is nothing between you and Xrm object(with tsignore), currently it's still possible to interact via Xrm in PCF.
Middle tier solution: Add extra form fields to PCF parameters, altering this fields in PCF, binding change or outputchange event in form JS, change other control in that event.
Top tier solution: Avoid this kind of design from design phase.
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 Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 490
WarrenBelz 427 Most Valuable Professional
Vish WR 381