These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Narrowing Selections in 2nd Drop-down After Selecting Option in 1st

amococrash
Registered: Jul 29 2008
Posts: 6
Answered

I'm pretty sure this question has been answered a hundred times before, but I cannot seem to locate the answer! My thanks in advance. So here goes...

I have a set of selections in one combo box. After my end user makes the selection, I want that selection to dictate the contents of the second box.

For instance, combo box one has four options. One is "Property". If Selected, the second box will only display property related perils such as "Fire" or "Windstorm". It will not display any of the perils associated with other lines of insurance.

Thanks again!

My Product Information:
Acrobat Pro 8.1.2, Windows
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
Assuming you're using Acrobat and not Designer, to dynamically set the items of a combo box, you'd use the setItems field method that's documented in the Acrobat JavaScript reference. Also, be aware of the commitOnSelChange property of a combo box. If you get stuck with the JavaScript, post again.

George
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
In LiveCycle Designer, one has to add items to a drop down list or combo box one at a time and not as an array so it takes a little more code.

George Kaiser

amococrash
Registered: Jul 29 2008
Posts: 6
I am using Acrobat and not LiveCycle but I'll keep it in mind as I use LiveCycle on occasion.

Thanks again for the feedback, I'm happy my first experience with these forums was both informative and pleasant!