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

Presence Issue with Various Fields


Level 4

Within my form, there is a checkbox that toggles the visibility of a textbox nearby. When this checkbox is checked, the textbox is visible. Otherwise, it is not visible. This check box and text box are both contained in a subform together and this toggling of visibility works just fine.

What doesn't work just fine is the fact that when I move my form forward in its workflow and I open it up again, the text box is invisible again even though its checkbox is checked.

The script I am using is in the Change event of the checkbox and it simply tests for the current value of the checkbox as a 0 or 1. There are no other scripts associated with either the checkbox or the text box.

Any ideas? BTW: I have tried using the Form Properties configuratin of saving the form's "state" automatically already but to no avail.

2 Replies


Level 4
what event do you have the code under?

if you have it under checkbox - change, you should also put it under initialize.

hope this helps


Level 10
The change event only fires when you change the value of the field .....when the form loads in a subsequent step the change event will not fire and your change in presence does not happen. If you put the check on the DocReady event as well as the change, then when the form loads it will check that state of the checkbox and set presence accordingly and if I click on the box after it is rendered the change event will still take care of setting the presence.