web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PCF controls that show...
Power Apps
Unanswered

PCF controls that show/hide other form controls

(0) ShareShare
ReportReport
Posted on by 6

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?

I have the same question (0)
  • a33ik Profile Picture
    3,306 Most Valuable Professional on at

    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.

  • Community Power Platform Member Profile Picture
    on at

    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.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard