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

add a new entry/delete in my array with custom option in my dropdown list

Explorer ,
Dec 03, 2018 Dec 03, 2018

Copy link to clipboard

Copied

i want a user add new entry in array when write custom text to dropdown list e.g.:

var MyItems = new Array(

" ",

"apple",

"orange",

"mango",

);

MyItems.sort();

this.getField("Dropdown7").setItems(MyItems);

user write in dropdown list : apple system return message this value is in array!

user write Banana

var MyItems = new Array(

" ",

"apple",

"banana",

"orange",

"mango",

);

MyItems.sort();

this.getField("Dropdown7").setItems(MyItems);

also if user want to delete a entry in my array how to solve this on PDF mode?

TOPICS
Acrobat SDK and JavaScript

Views

378

Translate

Translate

Report

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

correct answers 1 Correct answer

Community Expert , Dec 03, 2018 Dec 03, 2018

Here's an article that covers this exact issue, and there is a download sample:

https://acrobatusers.com/tutorials/list_and_combo_in_lc

Here is another more complete discussion on lists in Acrobat

https://www.pdfscripting.com/public/List-Field-Usage-and-Handling.cfm

Votes

Translate

Translate
Community Expert ,
Dec 03, 2018 Dec 03, 2018

Copy link to clipboard

Copied

LATEST

Here's an article that covers this exact issue, and there is a download sample:

https://acrobatusers.com/tutorials/list_and_combo_in_lc

Here is another more complete discussion on lists in Acrobat

https://www.pdfscripting.com/public/List-Field-Usage-and-Handling.cfm

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

Translate

Translate

Report

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