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 / label fill conditional...
Power Apps
Answered

label fill conditional - if label text is "approved", fill with green, if "reject" fill with red color

(0) ShareShare
ReportReport
Posted on by 288

Hello everyone,

 

I'm struggling with if conditionals, I wanna change fill color (or border color or sth) effect based on "LABEL status" , like if rejected or so... just to make it easier to see. I would format font and in the end all color properties of the label, but I dont know how to start with it.

 

NidjoJohnny22_0-1671463850127.png

 

Categories:
I have the same question (0)
  • Verified answer
    cha_cha Profile Picture
    4,932 Moderator on at

    Hello @NidjoJohnny22 

     

    EDIT: I edited my initial answer since labels don't have Value property. what they have is Text

    If you only have two possible values you can your usual logic:

     

    If(Self.Text="Approved", RGBA(54, 176, 75, 1),RGBA(168, 0, 0, 1))

     

     

    If you have 3 Possible Values, 3rd color below is Gray if it's neither Approved or rejected.

     

    If(Self.Text="Approved", RGBA(54, 176, 75, 1),
     If(Self.Text="Rejected", RGBA(168, 0, 0, 1),
     RGBA(128, 128, 128, 1)
    ));

     

     


      ✔️
    Just in case my response helped you solve your problem, please mark/accept this as a SOLUTION This helps community members if they experience a similar issue in the future.

     

      🔗
    🕸bistek.space  🐦 @cha_bistek  📺 @BisTekSpace 
  • NidjoJohnny22 Profile Picture
    288 on at

    how do I learn more about this objects like self.text and so? I am confused with it

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard