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 / 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard