Copy link to clipboard
Copied
Hello All,
I have a form that the end user can attach multiple files to the form and that is annotated into a list box. I know how to remove all the attachments and already have that set on a button. What I am wanting to do (and just finding no way to do it) is select a single file from the list box and remove just that file when the button is clicked.
Any suggestions would be wonderful.
Thank you!
Copy link to clipboard
Copied
Attachments are "data objects", and you can remove one using the Doc.removeDataObject() method: Acrobat DC SDK Documentation - Doc.removeDataObject()​
All you need to do is pass in the name of your data object and it should be gone.
Copy link to clipboard
Copied
what do you mean pass in the name?
I am trying to teach myself as i go.
Copy link to clipboard
Copied
You use the attachment name for the paramrter used by the method.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now