Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Setting the presence of a subform w/ a check box

Avatar

Former Community Member
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

Former Community Member
I wouldn't use the change event .....I would use the exit event.

Avatar

Former Community Member
That doesn't change whether the code works or not. Which it still doesn't.