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 / Checkbox border color ...
Power Apps
Answered

Checkbox border color based on DisplayMode setting

(0) ShareShare
ReportReport
Posted on by 437 Super User 2024 Season 1

I have a gallery and if it's in View mode, I want my checkbox to have a gray border.  But if it's in Edit mode, I want the border to be blue.  I tried this, but it doesn't do anything:

 

(Classic) Checkbox border color:  If(varPassReqDisplayMode = DisplayMode.Edit,Color.Gray,Color.Blue)

Categories:
I have the same question (0)
  • PA_nerd Profile Picture
    63 on at

    Hi!  Instead of VarPassReqDisplayMode try using

    Gallery1.DisplayMode

     

    Replace Gallery1 with your gallery name.

  • Verified answer
    Brian-M Profile Picture
    437 Super User 2024 Season 1 on at

    Nevermind, I got it.  I had it on the BorderColor, which was set to 0 and not on CheckBoxBorderColor, which is where the formula should have been.  Also, I had the blue/gray backwards.

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 899

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 499

Last 30 days Overall leaderboard