Change fill color of text field if entered text is equal to that in another field

Avatar

Avatar

baconrhae

Avatar

baconrhae

baconrhae

18-02-2016

I am looking for a way to highlight when two cells match.  For, instance if the text in cell 1 is Yes, and the text in cell 2 is Yes, I want both to turn green.  Otherwise they can turn red.

I've tried several bits of script I've found online, but none seem to be working.  Could also be that I'm not putting it in the right spot?  This is only the second time I've dealt with any scripting in LiveCycle.

The more info you can give me the better!

Thanks,

Bacon

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

baconrhae

Avatar

baconrhae

baconrhae

19-02-2016

Figured it out - for others who might struggle with things I struggle with:

if(Cell1.rawValue != Cell2.rawValue) this.fillColor = "255,0,0";

else this.fillColor = "255,255,0";

Goes in the exit field of the cells you want colored, with Cell1 and Cell2 being replaces by binding for necessary cells.

Answers (0)