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

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

New Here ,
Feb 18, 2018 Feb 18, 2018

Copy link to clipboard

Copied

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

Views

1.0K

Translate

Translate

Report

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

correct answers 1 Correct answer

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.

Votes

Translate

Translate
Community Expert ,
Feb 19, 2018 Feb 19, 2018

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

screenshot.PNG

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

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