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

Explorer ,
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

99

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

1 Correct Answer

Adobe Community Professional , Dec 03, 2018
Thom Parker Adobe Community Professional , 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 Acrobathttps://www.pdfscripting.com/public/List-Field-Usage-and-Handling.cfm

Likes

Translate

Translate
Jump to answer Jump to answer
Adobe Community Professional ,
Dec 03, 2018

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more