cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
vikna
Helper III
Helper III

Change FIll Colour Based on TextInput

Hi Team,

I would like to know how to use a Switch command to change the fill color of "TOTAL" if the number : 

is <10, change to RED

if more or equals 10 and less than 20 , change to YELLOW

otherwise, its default colour

 

 

vikna_0-1620799368256.png

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Ethan_R
Super User
Super User

Hi @vikna ,

You can use this in the Fill Property of Total.

If(Value(Self.Text) < 10, Red,
    If(Value(Self.Text) < 20, Yellow,
    DefaultColor
    )
)
 
Use your default color or else it'll go black
Hope this helps.
 

View solution in original post

This worked!!! Thank you very much !

vikna_0-1620802398524.png

 

View solution in original post

3 REPLIES 3
Ethan_R
Super User
Super User

Hi @vikna ,

You can use this in the Fill Property of Total.

If(Value(Self.Text) < 10, Red,
    If(Value(Self.Text) < 20, Yellow,
    DefaultColor
    )
)
 
Use your default color or else it'll go black
Hope this helps.
 

This worked!!! Thank you very much !

vikna_0-1620802398524.png

 

hi @Ethan_R 

I have to use it also and working good

but if i need to use instead of that Based on Another TextInput by % of amont

what i have to change

regard

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (2,985)