List box to show attachments
Hello all I found some wonderful scripts to enable users to add attachments to a PDF form. Unfortunately I cannot create a functioning list box that will show a list of attachments displayed in the attachments panel? I tried the code from a previous thread but it did not work. I am working in Adobe Acrobat XI not in LiveCycle.
Below is the script I tried to get the list box to work
// List ANY ATTACHMENTS
var d = event.target.dataObjects;
if (d != null)
for (var i = 0; i < d.length; i++)
{
console.println("Data object[" + i + "]=" + d.name);
}
Thanks