Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

dropdown values from array

New Here ,
Mar 30, 2016 Mar 30, 2016

I am javascript dumb and need help. I have an array of Facility ("Facility")and Account # ("Acct"). I want to have the Facility to scroll through the array (new Array1) and Acct to pick up the value

Document JavaScript Selection Array1

var aNamesID = new Array1(

[" ", ""],

["Customer Name One","ID12345"],

["Lower Customer Name Two","ID 789"]

);

this.getField("Facility").setItems(aNamesID);

How do I tie my Selection Field "Facility" to my Array1?

I will have another Selection list / Array doing a similar function (Fields "ProCode" & "Description") do I need to call it "Selection Array2" and

var aNamesID = new Array2(

[" ", ""],

["ItemProCode1","Description of one"],

ItemProCode2","Description of two"]

);

this.getField("Description").setItems(aNamesID2);

thanks

TOPICS
Acrobat SDK and JavaScript , Windows
236
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation