0

Can anyone help me to change the Fill property of a ComboBox when the ComboBox is selected by the user? Currently, when the drop-down is clicked the values to be selected are transparent across the other values in the gallery. I'd like to set the fill property to white on drop-down so the selectable options are clearly visible. Thank you!

I've tried to use ".IsSelected" and ".Selected" but to no avail.

Chris2015
  • 1,030
  • 7
  • 28
  • 42

1 Answers1

2

You have properties like below for Combo box control in Power Apps:

  • SelectionColor
  • SelectionFill
  • SelectionTagColor
  • SelectionTagFill
  • Fill

You might want to utilize those properties based on your requirements.

Here are some Accessibility guidelines for combo box control

enter image description here

Documentation: Combo box control in Power Apps


Anyway, if you want to set color conditionally, you can use formula in this format:

If(
    IsBlankOrError(dropdownControl.Selected),
    RGBA(0, 0, 0, 1), // Some other color as per your requirements
    RGBA(255, 255, 255, 1) // White
)

If the value is selected in drop down, it will show the white color else other color you specified.

Ganesh Sanap
  • 1,386
  • 1
  • 8
  • 18
  • 1
    Thank you very much Ganesh! The code worked great. I was able to adjust slightly to accommodate the needs of my app. I appreciate your help. – Chris2015 May 19 '23 at 11:17