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 / Color Code a Person fi...
Power Apps
Unanswered

Color Code a Person field set to "Pending"

(0) ShareShare
ReportReport
Posted on by

@RandyHayes 

 

Hello,

 

I have a gallery with a Mechanical Engineer column which is a person field. If an ME hasn't been assigned yet, the column is set to Pending as per this Text formula:

 

With({dn:Match(ThisItem.'ME Assigned'.DisplayName, "^.*\s.").FullMatch},
If(IsBlank(dn), "pending", dn & "."))

 

I would like to set any Pending items to Red so they stand out more as an item that needs to be addressed. Can someone help me figure out how to set the Color property to achieve this? Thank you, Teresa

 

GalleryME-SS.png

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @tagustin2020 

    Are you trying to set the label as red or the entire row?  Also, are you trying to Fill the color or just change the Text color?

     

  • Verified answer
    RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @tagustin2020 

    Just to cut to the chase on some of this...

     

    Set your appropriate property to the following:

    If you want the label to be filled with Red, then put this in your Fill Property: 

        If(Self.Text = "pending", Red, Transparent)

     

    If you want the label to be the color, then put this in your Color Property: 

        If(Self.Text = "pending", Red, Black)

     

    If you want the Row to be filled with Red, then put this in your TemplateFill Property of the Gallery: 

        If(yourMELabelName.Text = "pending", Red, Transparent)

     

     

     

     

  • tagustin2020 Profile Picture
    on at

    @RandyHayes 

     

    Thank you Randy. I appreciate you providing solutions for all 3 scenarios. I applied the one to change the color of the text and it worked perfectly!

     

    Kind regards,

    Teresa

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 774 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 335 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 248

Last 30 days Overall leaderboard