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

Setting the presence of a subform w/ a check box

Avatar

Not applicable
I have a form with a table used to fill out information for different payment options. There are several check boxes and then a few fields which I have put into a subform associated with the check boxes. The code I have to control the presence is:



topmostSubform.Page1.CheckBox1::change - (JavaScript, client)



if (CheckBox1.rawValue == 1) {

sub1.presence = "visible";

}else if (CheckBox1.rawValue == 0) {

sub1.presence = "hidden";

}
3 Replies

Avatar

Level 10
I wouldn't use the change event .....I would use the exit event.

Avatar

Not applicable
That doesn't change whether the code works or not. Which it still doesn't.