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

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

Level 10

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