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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

Anonymous
Not applicable

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

1 Accepted Solution
Correct answer by
Anonymous
Not applicable

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.

View solution in original post

1 Reply
Correct answer by
Anonymous
Not applicable

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.

View solution in original post