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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Modern ComboBox fill p...
Power Apps
Unanswered

Modern ComboBox fill property

(0) ShareShare
ReportReport
Posted on by 23
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
    741 Super User 2025 Season 2 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
    23 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard