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
Resolver III
Resolver III

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

2 REPLIES 2
Ethan_R
Resolver III
Resolver III

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

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

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