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 / Modern ComboBox fill p...
Power Apps
Answered

Modern ComboBox fill property

(0) ShareShare
ReportReport
Posted on by 32
I am creating a modern form In PowerApps and modern combobox is added to the datacards.  how do I change fill property for edit and new displaymode? is it possible?  Also, I am not able to change the font color when the datacard is disabled. Only Appearance property is triggering, fill is not applying. Also, I am not able to change the font color when the datacard is disabled, is there a way to configure these properties?
Categories:
I have the same question (0)
  • Verified answer
    SwatiSTW Profile Picture
    809 Super User 2026 Season 1 on at
    1. To change the background (Fill) color of the ComboBox to be different depending on whether it's in Edit mode or New mode-
    Select the ComboBox inside the DataCard.
    Go to the Fill property of the ComboBox.
    Use below code.
    If(
        Parent.DisplayMode = DisplayMode.Edit,
        ColorValue("White"),  // Fill color for Edit mode
        ColorValue("LightGray")  // Fill color for other modes
    )
    2.  To change the text color of the ComboBox to change to Gray when the DataCard is disabled-
    Select the ComboBox inside the DataCard.
    Go to the Color property of the ComboBox.
    Use below code.
    If(
        Parent.DisplayMode = DisplayMode.Disabled,
        ColorValue("Gray"),  // Text color for Disabled mode
        ColorValue("Black")  // Text color for Edit or View mode
    )
    3. If the Fill property of the DataCard doesn’t apply, unlock the DataCard and control its behavior manually-
    Unlock the DataCard
    Select the DataCard.
    Go to the Advanced Properties panel.
    Click Unlock.
    To ensure the background color applies select the DataCard itself.
    Set its Fill property to this code:
    If(
        DisplayMode = DisplayMode.Disabled,
        ColorValue("LightGray"),  // Disabled mode color
        ColorValue("White")  // Default color
    )
    4. Customizing ComboBox Appearance When Disabled,
    If you want the ComboBox to look better when disabled and cannot directly apply Fill or Color effectively-
    Add a Rectangle shape on top of the ComboBox.
    Set the Fill of the Rectangle to:
    If(
        Parent.DisplayMode = DisplayMode.Disabled,
        RGBA(211, 211, 211, 0.5),  // LightGray with transparency
        RGBA(0, 0, 0, 0)  // Fully transparent
    )
    Adjust the Z-Order to keep the ComboBox interactive when not disabled.
  • Verified answer
    CU08111717-0 Profile Picture
    32 on at
    Thank you SwatiSTW  for your response.
     
     I tried 1st, 2nd and 3rd, they are not working.  I will have to go with the option no. 4 or revert them back to classic combo boxes.  

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 421

#2
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 278 Super User 2026 Season 1

Last 30 days Overall leaderboard