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 / How do I change Border...
Power Apps
Answered

How do I change Border color of the label if dropdown value is blank?

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I have Dropdown1[Blank(),"1","2","3"]

 

Then, Label1.Bordercolor = If(IsBlank(Dropdown1.Selected.Value) = true, Color.Red,Color.DimGrey)

 

However, if Dropdown1.Selected.Value == Blank, Border color of LAbel1 doesn't change.

 

Can you please help how can I change the color of the border?

 

Thanks,

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @dave8 

    Your code appears to be 100% correct.  My thought is the BorderThickness property is currently set to 0.  You should increase it to this size instead.

     

    2

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Dave Wi Profile Picture
    on at

    @mdevaney 

     

    That's true, However, I just realized that "Label1.DisplayMode = Disabled" too.

     

    Is there any workaround to change the color of label1 in disabled mode?

     

    Thanks,

  • Verified answer
    mdevaney Profile Picture
    29,991 Moderator on at

    @dave8 

    When a label is disabled you must change these properties to achieve the desired effect.  This allows you to design the look of the disabled label.

     

    • DisabledBorderColor
    • DisabledColor
    • DisabledFill

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 404

#2
timl Profile Picture

timl 344 Super User 2026 Season 1

#3
WarrenBelz Profile Picture

WarrenBelz 320 Most Valuable Professional

Last 30 days Overall leaderboard