Skip to main content
Participant
March 28, 2018
Question

How to autofill Combo Box options based on the choice chosen in two other Combo Boxes.

  • March 28, 2018
  • 1 reply
  • 1577 views

Hello,

I am using Adobe Acrobat Pro DC and making a pdf with multiple Combo Boxes where the choice on one will autofill the options on the next. Let me try to explain. I have (6) Combo Boxes.

Box1= Brand

Box2= Model

Box3= Sub Model

Box4= Size

Box5= Color

Box6= Lites

Box1 choice autofills Box2 options.

Box2 autofills Box3, Box4, & Box5 options.

Box3 & Box4 autofills Box6 options depending on what was chosen in Box3 & Box4.

What do i need to do in order to autofill Box6 options?

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
March 28, 2018

You need to use a script and some kind of data model to do it.

I've developed a tool exactly for this purpose. It allows you to set up these "cascading dropdowns", as I've called them, based on a spreadsheet and without having to write any code. You can purchase it here: Custom-made Adobe Scripts: Acrobat -- Create Cascading Dropdowns

mw78313Author
Participant
March 28, 2018

I have it setup already for Box1 to autofill Box2 and Box2 to autofill Box3, Box4, & Box5.

I just wasn't sure how to do the scripting to have Box6 options autofill depending on the choices in Box3 & Box4.

Was hoping someone could show me what the proper script would be to do that.

Thom Parker
Community Expert
Community Expert
March 28, 2018

Read this article.

https://acrobatusers.com/tutorials/js_list_combo_livecycle

There is a sample file that provide all the code.

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often