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] How to set contr...
Power Apps
Answered

[PCF] How to set control style based on mode (read-only etc.)

(0) ShareShare
ReportReport
Posted on by

Hello,

 

How can i set control style based on his mode (read-only etc.) ?? 

 

Thanks

I have the same question (0)
  • Verified answer
    Greg Hurlman (MSFT) Profile Picture
    on at

    You can get that information from the context object, at context.Mode.isControlDisabled.

  • rexkenley Profile Picture
    203 on at

    @GregHurlmanMSFT 

     

    Is there documentation for this? I tried to google for this very thing and it did not return anything from microsoft docs.

     

    Thanks!

  • Ben Thompson Profile Picture
    1,400 on at

    It's available at 

     

    https://docs.microsoft.com/en-us/powerapps/developer/component-framework/reference/mode

     

    but as with all such documentation it does not go into any detail

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 445

#2
WarrenBelz Profile Picture

WarrenBelz 386 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 321 Super User 2025 Season 2

Last 30 days Overall leaderboard