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

Announcements

News and Announcements icon
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 Microsoft Employee

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
    Microsoft Employee 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 525 Most Valuable Professional

#2
Haque Profile Picture

Haque 308

#3
Kalathiya Profile Picture

Kalathiya 234 Super User 2026 Season 1

Last 30 days Overall leaderboard