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

Fill JavaScript dropdown list

Community Beginner ,
Sep 16, 2023 Sep 16, 2023

Good morning,
Can you help me, I'm looking to fill out a drop-down list in javascript, is this possible?

THANKS
Sincerely

TOPICS
JavaScript , PDF , PDF forms
814
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
1 ACCEPTED SOLUTION
Community Expert ,
Sep 16, 2023 Sep 16, 2023

Use drop1.setItems(arrayD);

View solution in original post

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
Community Beginner ,
Sep 16, 2023 Sep 16, 2023
var drop1 = this.getField("drop1");
var arrayD = ["orang","route","vert","violet"];
for(var i = 0; i < arrayD.length; i++){drop1.setItems(arrayD[i])};

 

not work !

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
Community Expert ,
Sep 16, 2023 Sep 16, 2023

Use drop1.setItems(arrayD);

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
Community Beginner ,
Sep 17, 2023 Sep 17, 2023
LATEST

Thanx you, good job !

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