Highlighted

Change fields based on selection in drop down list

New Here ,
Oct 27, 2020

Copy link to clipboard

Copied

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.  

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.

TOPICS
Create PDFs, How to, PDF forms

Views

25

Likes

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

Change fields based on selection in drop down list

New Here ,
Oct 27, 2020

Copy link to clipboard

Copied

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.  

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.

TOPICS
Create PDFs, How to, PDF forms

Views

26

Likes

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

Copy link to clipboard

Copied

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.

Likes

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
Reply
Loading...
Oct 27, 2020 0
New Here ,
Oct 28, 2020

Copy link to clipboard

Copied

Awesome thank you. That works beautifully!

Likes

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
Reply
Loading...
Oct 28, 2020 0