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?
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.
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.
WarrenBelz
109
Most Valuable Professional
Michael E. Gernaey
82
Super User 2025 Season 1
MS.Ragavendar
72