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

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Removing fill color upon de-selection


Level 4

I have a check box that, when checked, causes about 3 other things to happen. The last thing to happen is that the check box itself is supposed to fill with color. All works great, except the color remains when the check box is de-selected.  I had a similar problem before and was told to add xfa.layout.relayout() to the end of the script, and that worked in that particular instance. However, adding it to this series of scripts, does not make the fill color go away upon de-selection.

Here are the scripts attached to this one little check box:





Does anyone know what is wrong with here?

3 Replies


Level 10

Is the form saved as a dynamic form?



Level 4

Okay, I solved my own problem simply by moving the script that controls the checkbox fill color to the beginning of whole line of scripts associated with that checkbox. I have no idea why that worked though, so I still have the knowledge gap.

If anyone knows why this worked and cares to share, I would be eternally grateful!