Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

A check box that if checked, will mark multiple boxes

Avatar

Former Community Member
I am trying to create a form in Adobe Designer that will allow me to check one check box which would then automatically check multiple check boxes when it is filled out.



Any answers would help! Thank you!
1 Reply

Avatar

Former Community Member
If you have three checkboxes (cb1, cb2, and cb3) the following script on the cb1 change event will set cb2 and cb3, where '1' is the default 'On' value.



form1.subform1.cb1::change - (JavaScript, client)



if (cb1.rawValue == "1") {

cb2.rawValue = "1";

cb3.rawValue = "1";

}

else {

cb2.rawValue = "0";

cb3.rawValue = "0";

}



Steve