Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new

Learn More

View all

Sign in to view all badges

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



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!



Accepted Solutions (1)

Accepted Solutions (1)



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)