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

Basic JS array population from a Drop-Down

Torvik
Registered: Mar 14 2007
Posts: 25

I know this should be easy, but I'm missing something...
I'm trying to populate a drop-down with a simple array of numbers.

ex:

DropDown1 = Apple
DropDown2 = 1-20
DropDown1 = Orange
DropDown2 = 1-15

I'm using something like this:

if (this.rawValue == "apple") {
DropDown2.addItem(new Array(20));
if (this.rawValue == "orange") {
DropDown2.addItem(new Array(15));

But something is missing, and I sure don't know what. Suggestions?
Thanks!
Alan

cfinley
Registered: Jan 9 2008
Posts: 70
This might be what you're looking for:

http://www.acrobatusers.com/tutorials/2007/js_list_combo_livecycle/

should just be able to replace assembly with orange/apple, and part with 1-19, 1-5

beyond that I don't know, only been using LiveCycle for 3 weeks, so haven't really grasped the syntax of JavaScript yet