I would like to have a hierarchical drop down list. For example:
Shopping items:
1. Grocery
2. Department store
3. Automotive
4. Medical
User picks choice 4, medical: new list:
1. medications
2. health aids
3. misc. supplies
User picks choice 1, medications --> new list
1. antibiotics
2. pain medications
3. cardiac medications
User picks choice 2, pain medications --> new/final list:
1. Tylenol
2. Aspirin
3. Aleve
4. Morphine
5. Ibuprofen
When I searched the forums, for "nested drop-down list", the closest thing I found was a popup menu example/tutorial with javascript console by Thom Parker from Feb 12. 2009. It looks effective but complicated and laborious.
Is there anything out there simpler? I really only need to go 3 levels at most.
Thanks.
you can design a dropdown list as you said.
All you need is a set of form variables for your dropdown values and a little bit JavaScript.
I designed a sample for you.
There you find the form variables (Sel0, Sel1, Sel1_1, Sel1_2 ...), one drop down list and a reset button.
The Dropdown is populated with the variable "Sel0" at the beginning. If you select some value it is then populated with another form variable from a deeper hierachy.
All you need therefore is a switch:case JavaScript.
Check out this sample:
[url]https://acrobat.com/#d=JzdT3L5dIa3mr8YRNXMvuA[/url]
radzmar
• LoveCycle Blog
Documents you need:
• LiveCycle Designer ES2 Docs