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

makes other fields required

Participant ,
Aug 05, 2016 Aug 05, 2016

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

TOPICS
Acrobat SDK and JavaScript , Windows
468
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 , 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");

Translate
Community Expert ,
Aug 05, 2016 Aug 05, 2016
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");

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