Loading values into a dropdown


i have set of values, , # of values can vary.  want load values dropbox using javascript.  figured using for/next loop, , method such setitem: instance below, isn't working.  suggestions?  note again, number of values varies - 3, 6, or 5

 

yy(1)=dog

yy(2)=cat

yy(3)=bird

 

 

fox (x=1; x <=arraylength; x++)

setitem yy(x);

 

 

 

thanks assistance.

no need loop. create array , use field.setitems statement: http://livedocs.adobe.com/acrobat_sdk/9.1/acrobat9_1_htmlhelp/js_api_acrojs.88.752.html

 

following example, might llook this:

 

var items_array = ["dog", "cat", "bird"];

getfield("dropdown1").setitems(items_array);

 

see documentation if need include export values items.



More discussions in PDF Forms


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support