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.
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.
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.
Copy link to clipboard
Copied
Awesome thank you. That works beautifully!

