Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Attachment removal issue

Level 1
Level 1


I am trying to create listbox that will be used to add, open and remove attachment.  This form has 3 buttons for 3 action. I have having difficulty with the ''Remove" button.

On the click event for the remove button, I have written some simple javascript code (help taken from adobe forum) to delete the selected index item that should read the selected item from the listbox and then delete it. This part is okay.

But I want to add some code in the "remove" button so that whoever add the attachment in the form will only be able to delete the attachment. Other people are able to view attachment by clicking the "open" button after highlighting the attachment. As I am novice in JavaScript, I don't know whether it is possible or not. And if possible, how it can be achieved.


0 Replies