Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
Feb 18, 2018 Feb 18, 2018

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!

TOPICS
PDF forms
1.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Feb 19, 2018 Feb 19, 2018

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.

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 19, 2018 Feb 19, 2018

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 19, 2018 Feb 19, 2018

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

screenshot.PNG

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 19, 2018 Feb 19, 2018

If possible, please tell me how I can do it. Thanks.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 19, 2018 Feb 19, 2018

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 11, 2023 Oct 11, 2023
LATEST

I do not get it. I'm sorry. How can you do that?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines