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

Adobe PDF Form - show form field based on dropdown selection

New Here ,
Jul 02, 2023 Jul 02, 2023

Good morning,

 

I have a multi-page document that I am trying to condense. 

 

In one section, we have Course Selection with the following fields:

Course name (drop down)

Start date (date)

Campus (select one of two tick boxes)

Length (type in length of weeks)

 

For one of the courses (Private Lessons), in addition to length (weeks), we will also need total number of hours they would like to enrol. The other courses do not have the option for hours so I only want this to show if they select Private Lessons from the drop down menu. 

 

Is this possible? 

 

Thank you.

TOPICS
Create PDFs , JavaScript , PDF , PDF forms
767
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
1 ACCEPTED SOLUTION
Community Expert ,
Jul 02, 2023 Jul 02, 2023

You can use this as 'Validate' script of dropdown:

this.getField("Hours").display = event.value == "Private Lessons" ? display.visible : display.hidden;

 

Change "Hours" to your actual field name.

View solution in original post

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 ,
Jul 02, 2023 Jul 02, 2023

You can use this as 'Validate' script of dropdown:

this.getField("Hours").display = event.value == "Private Lessons" ? display.visible : display.hidden;

 

Change "Hours" to your actual field name.

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 ,
Jul 03, 2023 Jul 03, 2023
LATEST

Wonderful. It works well. Thank you for your time, Nesa. Much appreciated. 

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