Expand my Community achievements bar.

SOLVED

Text Field .fillColor disappearing

Avatar

Level 1

For some reason the following code only seems to highlight the active form field. In other words, as soon the cursor moves to another form field the background color reverts to the default color. However, if i move the cursor back to the field with the conditional formatting the color pops back up??? 

 

var v = +event.value;

if (v == "IL") {

this.getField("ST15_1").fillColor = color.black;

} else {

this.getField("ST15_1").fillColor = color.transparent;

}

1 Accepted Solution

Avatar

Correct answer by
Level 1

Sorry, meant to leave a comment not a solution...

View solution in original post

2 Replies

Avatar

Correct answer by
Level 1

Sorry, meant to leave a comment not a solution...

Avatar

Level 1
Correction, this was the code I was using: if (event.value=="UL") event.target.fillColor = color.red; else if (event.value=="ML") event.target.fillColor = color.green; else if (event.value=="IL") event.target.fillColor = color.blue; The other code did not work at all.