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

Change fields based on selection in drop down list

New Here ,
Oct 27, 2020 Oct 27, 2020

Hi there

 

I am designing a form in Acrobat Pro DC with the intention of being able to use the same form for a few different scenarios. So for example if "Delivery Note"is selected in the dropdown, a table will display providing options for "quantity", "item code" and "item description". (It's ok if this table shows form the beginning). 

 

My real question is that I would like to use the same form for "Demo Loans" but when this is selected from the dropdown I would like Check Boxes to be added next to each line item in the table that can be checked once the items are returned. 

 

Is it possible to only have the check boxes appear when the "Demo Loan" option is selected form the dropdown? 

 

Thanks for any help.  

TOPICS
Create PDFs , How to , PDF forms
5.4K
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 ,
Oct 27, 2020 Oct 27, 2020

You could use code like this in dropdown field "Custom Calculation Script" or "Custom Validation Script":

this.getField("Check Box2").display = event.value == "Demo Loan" ? display.visible : display.hidden
this.getField("Check Box3").display = event.value == "Demo Loan" ? display.visible : display.hidden
this.getField("Check Box4").display = event.value == "Demo Loan" ? display.visible : display.hidden;

Of course you  change field names and add more checkboxes if needed.

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 ,
Oct 27, 2020 Oct 27, 2020

You could use code like this in dropdown field "Custom Calculation Script" or "Custom Validation Script":

this.getField("Check Box2").display = event.value == "Demo Loan" ? display.visible : display.hidden
this.getField("Check Box3").display = event.value == "Demo Loan" ? display.visible : display.hidden
this.getField("Check Box4").display = event.value == "Demo Loan" ? display.visible : display.hidden;

Of course you  change field names and add more checkboxes if needed.

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 ,
Oct 28, 2020 Oct 28, 2020
LATEST

Awesome thank you. That works beautifully!

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