Adobe Acrobat Standard 2020 Javascript issue
Hi there, I am hoping someone can help me, on top of PDF I have text fields, that I enabled via a script to be available in a dropdown. I am having an issue that when an additional text field is entered at the top, it wipes out the dropdown selections already made and you have to go through and select the drop downs again.
Below is the script I have, I got this one from the Community here. Can you let me know if this a bug within Adobe or is something wrong with the script and how to fix it?
if(/^Account/.test(event.source.name))
{
var aValues = this.getField("Account").getArray().map(function(a){return a.valueAsString;});
var aList = aValues.filter(function(a){return (a.length > 0);});
aList.unshift(" ");
event.target.setItems(aList);
}


