Dynamic DropDown List Add - Delete items
Hi Great Developers...
Actually I Started building form (Acrobat Pro DC) and adding Drop down list and i need to dynamically let the user to add list of emails manually so i insert (Add Button) and (Delete Button) to Add items or delete items to list, for the Adding items Button i wrote the following (my drop down list name is "EmailList" :
Add Button JavaScript (not working) :
var oFld = this.getField("EmailList");
var cEntry = oFld.getItemAt(oFld.currentValueIndices,false);
oFld.insertItemAt(cEntry , "s", 0);
and for Delete items Button JavaScript (working code) :
var f = this.getField("EmailList");
f.deleteItemAt(f.currentValueIndices);
now the problem is the Add Button JavaScript is not Working! , please help me if it can be done, thanks in advance
