Can Text Color Based on Value

Avatar

Avatar

MHaywood323

Avatar

MHaywood323

MHaywood323

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

Avatar

alcdtrainer1

Avatar

alcdtrainer1

alcdtrainer1

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

MHaywood323

Avatar

MHaywood323

MHaywood323

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";