Expand my Community achievements bar.

Need help in LiveCycle Forms - Highlighting required fields when the check box is checked / Un-highlighting the fields if I un-check the check box...

Avatar

Level 1

Hello All!

I am relatively new to creating forms within LiveCycle but I have learned quickly so bare with me on my question.

I have figured out how to highlight a field when a check box is clicked on, however, I cannot get it to remove the highlight when the check box is unchecked?

This is what I used for the highlight:

Subform1.fieldname.fillColor="255,255,0"

Can anyone provide any insight or suggestions on how I might fix this script issue?

Thanks in advance!

-Lisa

1 Reply

Avatar

Level 6

Hi,

Script migth be something like this. Put it on Change event of the check box

if (this.rawValue == 1) {

Subform1.fieldname.fillColor="255,255,0"

xfa.layout.relayout();

}

else

{

Subform1.fieldname.fillColor="255,0,0"

xfa.layout.relayout();

}

BR,

Paul Butenko