To disable "Remove / delete" option in attachment for closed ticket

shraddhap
Tera Expert

Hello,

When any Incident or Change is closed, user should not be able to delete or remove attachment from closed ticket.

Remove / Delete option should be disable on closure of ticket.

Regards,

Shraddha

11 REPLIES 11

Harish Murikina
Tera Guru

This below thread can helps you



Attachments to close incidents


ProbirDas
Tera Expert

The attachments are rendered from sys_attachment table. You can write an acl on the table with the condition that if the incident state is closed, user shouldn't be able to delete


can yuu explain this ..?

How I shloud write a code to hide remove option from attachments menu

 

Anurag Tripathi
Mega Patron
Mega Patron

just write a global onload client script , or if you want it on a particular table then on that table.



g_form.disableAttachments();


  var att= gel('header_attachment_list_label');


  if(att!=''){


  att.style.display = 'none';


  }


-Anurag