cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AVTS
Post Patron
Post Patron

Canvas App- Label Value color Change

How to change my label value color based on following condition in canvas app,

 

1.  Below 0 then Font color red

2.  Above 60 Days then font color green

3. Above 120 days then font color orange

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User III
Dual Super User III

In the Color property of the label use the following code

If(Value(Self.Text) < 0, Red,If(Value(Self.Text) > 120,Orange,Green))


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
Pstork1
Dual Super User III
Dual Super User III

In the Color property of the label use the following code

If(Value(Self.Text) < 0, Red,If(Value(Self.Text) > 120,Orange,Green))


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Thanks.It works.

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,325)