cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Traffic light

Hi peeps

I have a box that returns a value on selecting a button - (does a calculation)

And this calculation returns a number from 0 to 21

I would like a separate circle shape or box to shade a colour depending on the value of this other box. Example
If 13 and above the shape goes red
If between 7 and 12 goes amber
Below 7 goes green

How do i achieve this ?
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Traffic light

Hi @bongobus1,

Put a circle icon on the screen and size it.  If your box is named Textinput1, then select the icon and set the Fill property to

If(Value(TextInput1.Text) <7, Green,Value(TextInput1.Text)>12,Red,Yellow)

The Circle will change color instantly depending on the value in the Textinput control.

View solution in original post

2 REPLIES 2
Highlighted
Super User
Super User

Re: Traffic light

Hi @bongobus1,

Put a circle icon on the screen and size it.  If your box is named Textinput1, then select the icon and set the Fill property to

If(Value(TextInput1.Text) <7, Green,Value(TextInput1.Text)>12,Red,Yellow)

The Circle will change color instantly depending on the value in the Textinput control.

View solution in original post

Highlighted
Super User
Super User

Re: Traffic light

@bongobus1,

if this answers your question, please mark the thread as solved.

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,694)