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

makes other fields required

Participant ,
Aug 05, 2016 Aug 05, 2016

Copy link to clipboard

Copied

If I select a checkbox, I want it to make a dropdown field required.

TOPICS
Acrobat SDK and JavaScript , Windows

Views

418

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 , Aug 05, 2016 Aug 05, 2016

Use this code as the check-box's Mouse Up script (adjust the name of the field in the code to match the actual field name in your file):

this.getField("Dropdown1").required = (event.target.value!="Off");

Votes

Translate

Translate
Community Expert ,
Aug 05, 2016 Aug 05, 2016

Copy link to clipboard

Copied

LATEST

Use this code as the check-box's Mouse Up script (adjust the name of the field in the code to match the actual field name in your file):

this.getField("Dropdown1").required = (event.target.value!="Off");

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