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

Javascript

New Here ,
Sep 14, 2016 Sep 14, 2016

As a novice I'm trying to create Javascript for a PDF whereby ticking boxes 1, 2 or 3 automatically ticks box 4 but I want the tick in box 4 to be unticked if boxes 1, 2 or 3 are unticked/deselected.

At the moment box 4 remains ticked if 1, 2 or 3 are deselected.I've tried options on the net and the code at the moment is if (event.target.value!="Off") this.getField("TICKBOX4").checkThisBox(0, true); but I can't work how to automatically untick box 4 if any of the other 3 are unticked. Any help would be appreciated and I suspect this is quite straightforward if you know what you're doing!!!

TOPICS
Acrobat SDK and JavaScript
405
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

correct answers 1 Correct answer

Community Expert , Sep 14, 2016 Sep 14, 2016

After that line of code add this line:

else this.getField("TICKBOX4").checkThisBox(0, false);

Translate
Community Expert ,
Sep 14, 2016 Sep 14, 2016

After that line of code add this line:

else this.getField("TICKBOX4").checkThisBox(0, false);

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 ,
Sep 14, 2016 Sep 14, 2016
LATEST

Works a treat and really appreciated, 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