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

Hiding 6 text fields based on whether one check box is checked or not


Former Community Member


I want to have 6 fields that both turn on (become visible) and become required when I check the check box to their left on the form.

All the fields are on the same page and are all text fields.

The On Value is set to "Yes"

The Off Value is set to "No"



1 Reply


Former Community Member

This is what I have so far.

if(xfa.ONE.FORM.ASSAY.rawValue== true){

  //xfa.ONE.FORM.CO_ASSAY.presence = "visible";


else if(xfa.ONE.FORM.ASSAY.rawValue== false){

  //xfa.ONE.FORM.CO_ASSAY.presence = "hidden";