Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Highlighting fields in response to form filler interaction, can't figure out

Avatar

Level 1

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 unclicked?

this is what I used for the highlight:

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

3 Replies

Avatar

Level 10

It should be much the same ... if the code was in the click event of the check box and the off colour was white then;

if

(Subform1.fieldname.rawValue == 0)

Subform1.fieldname.fillColor

= "255,255,255"

else

Subform1.fieldname.fillColor

= "255,255,0"

Avatar

Level 1

The if,else is not working for my form. The field remains highlighted whether the check box is checked or not. Could my issue be with the settings of the form?

Avatar

Former Community Member

Put an message out before the if statement to validate that the value of TextField1 is what you think it is. It might be null.

Paul