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

JavaScript to complete check boxes

New Here ,
May 08, 2017 May 08, 2017

Hello,

I'm new to JavaScript and I'm trying to develop a script to check multiple check boxes when the first one is checked. When check box 3 is checked, I need check boxes, 9, 12, 15, and 18 to be checked automatically.

Any help would be greatly appreciated! Thank you.

TOPICS
Acrobat SDK and JavaScript , Windows
450
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 ,
May 08, 2017 May 08, 2017

What happens to check box 3 when a user checks 9, 12, 15, and 18? What if they check box 3 and then uncheck 9 manually after the script checks it automatically?

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 ,
May 08, 2017 May 08, 2017

Hi.

You don't need JavaScript.

Just give to the boxes, 9, 12, 15, and 18 exactly the same name and the same export value than the checkbox 3.


Acrobate du PDF, InDesigner et Photoshopographe
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 ,
May 08, 2017 May 08, 2017

... but then if the user checks box 9 (for example), then 3, 12, 15, and 18 also get checked.

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 ,
May 08, 2017 May 08, 2017

Yes, I hope that this is that Jess wants…


Acrobate du PDF, InDesigner et Photoshopographe
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 ,
May 08, 2017 May 08, 2017

Thanks, all. Yes, in this case all or none of the boxes in question should be checked.

Again, this is all new to me so how do I "give to the boxes, 9, 12, 15, and 18 exactly the same name and the same export value than the checkbox 3."?

Thank you!

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 ,
May 08, 2017 May 08, 2017
LATEST

Okay, I actually figured this out by right clicking on the check box field and updating the names, then ensuring that the export values are all set to 'yes' under properties.

Thank you! This is amazing!

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