Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
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

  • Ben Thompson Profile Picture
    1,400 on at
    Re: [PCF] How to set control style based on mode (read-only etc.)

    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

  • rexkenley Profile Picture
    203 on at
    Re: [PCF] How to set control style based on mode (read-only etc.)

    @GregHurlmanMSFT 

     

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

     

    Thanks!

  • Verified answer
    Greg Hurlman (MSFT) Profile Picture
    on at
    Re: [PCF] How to set control style based on mode (read-only etc.)

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

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 87 Most Valuable Professional

#2
mmbr1606 Profile Picture

mmbr1606 71 Super User 2025 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 65 Super User 2025 Season 1

Overall leaderboard