Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

checkbox problem

Avatar

Level 1

Hi,

Ive got an strange checkbox problem. I build 4 checkboxes in my aif. They should only appear/disappear 4 subforms.

(Initialize:

1 Checkbox: ckecked

2 Checkbox: unchecked

3,4 unchecked)

My coding is in the "click" and "initialize" event of my checkboxes.

if (this.rawValue=="1"){
subformname.presence="visible"
}
else {subformname.presence="hidden"
}

It works out at first. But e.g. if i uncheck the first checkbox - the subform of the second doesnt appear if i checked the second box.

But if i uncheck the first and check it then - the 2,3,4 checkboxes work out....

strange...

I hope anyone can help me!

greets

chris

0 Replies