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

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

SharePoint List - Change dropdown font colour if corresponding column is blank/empty

(0) ShareShare
ReportReport
Posted on by

Hi,


I have a dropdown control that is populated by a SharePoint list, that is setup like the one below:

 

powerapps-empty.jpg

 

The DropDown in PA is populated from the values in column "Title".  As you the other column (Value) in most cases has a value listed but Item 3 is empty.  What I'd like to be able to do is if a user selects Item 3 from the dropdown the font colour will change to RED to alert the user there is no value associated to that item.  This is what I've tried so far but I can't get it to work, this is in the "Color" property on the dropdown.

 

If(IsEmpty('TestList'.'Value'),Red,Black)

 

Hopefully this idea will work, the ideal would be to hide Item 3 from the drop down completely but that might be a step to far to achieve.

 

Thanks in advance for any help.


Rob

 

 

I have the same question (0)
  • RandyHayes Profile Picture
    76,291 Super User 2024 Season 1 on at
    Re: SharePoint List - Change dropdown font colour if corresponding column is blank/empty

    @Rob_CTL 

    You will not be able to set the color of the individual item IN the dropdown list, but you can change the color if the selected item has a blank value.

    Change your Color formula to the following:

    If(IsBlank(Self.Selected.Value), Red, Black)

     

    I hope this is helpful for you.

  • Verified answer
    Rob_CTL Profile Picture
    on at
    Re: SharePoint List - Change dropdown font colour if corresponding column is blank/empty

    @RandyHayes thanks for the reply, the solution didn't quite do what I wanted.  I've come up with a work around that uses a couple of hidden boxes to post a message on the screen then the value is empty.

     

    Thanks

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 652 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 410 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 236

Last 30 days Overall leaderboard