Skip to main content
mda29018974
Participating Frequently
February 19, 2018
Answered

Is it possible for 1 check box to check other check boxes?

  • February 19, 2018
  • 1 reply
  • 1486 views

Lets I have these check boxes under a selection header: A, B, C, D and "Select All". When user check "Select All", it should also check A, B, C and D. Is it possible? Thanks in advance!

This topic has been closed for replies.
Correct answer try67

As the Mouse Up event of the "Select All" field enter something like this:

this.getField("A").checkThisBox(0, event.target.isBoxChecked(0));

this.getField("B").checkThisBox(0, event.target.isBoxChecked(0));

this.getField("C").checkThisBox(0, event.target.isBoxChecked(0));

this.getField("D").checkThisBox(0, event.target.isBoxChecked(0));

etc.

1 reply

try67
Community Expert
Community Expert
February 19, 2018

Sure, but should it un-check them if the "Select All" box is un-checked itself?

mda29018974
Participating Frequently
February 20, 2018

Yes. Select all box will have the control over the other check boxes. For better understanding I am attaching a screenshot: