Can Text Color Based on Value

Avatar

Avatar
Validate 1
Level 2
MHaywood323
Level 2

Likes

3 likes

Total Posts

22 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
MHaywood323
Level 2

Likes

3 likes

Total Posts

22 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile
MHaywood323
Level 2

14-06-2015

I have been looking for a way to change the Fields's Text Color Based on Value

if  Textbox = A     then  A will be blue

if Textbox = B     then B will be red

I just need help getting the if then code working, changing the color after that is easy

Any Suggestions ..

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

15-06-2015

To change the boder, add the following script on the exit event:

if(TextField1.rawValue == "Desired Value")
     TextField1.border.edge.color.value = "255,0,0";
.
.

To fill the color, add the following script on the exit event:

if(TextField1.rawValue == "Desired Value")
     TextField1.border.fill.color.value = "255,0,0";

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 2
MHaywood323
Level 2

Likes

3 likes

Total Posts

22 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
MHaywood323
Level 2

Likes

3 likes

Total Posts

22 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile
MHaywood323
Level 2

15-06-2015

Thank you alcdtrainer... so much!

This code Works from you:

if(N1.rawValue == "M")

     N1.border.fill.color.value = "255,0,0";

SO, I was able to figure out what i needed ....

if(N1.rawValue == "M")

     N1.font.fill.color.value = "255,0,0";