Notifications
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 717 Most Valuable Professional
Michael E. Gernaey 329 Super User 2025 Season 2
Power Platform 1919 268