Disable renaming attachment

Tadz
Tera Guru
Tera Guru

Hi, is it possible to disable the renaming of the attachment?

Because i have disabled the attachment when the request is closed. using g_form.disableAttachments();

The g_form.disableAttachments(); works but I can still rename the attachment.

Is there any way to disable that?

Here is a sample screenshot:

attachment_renaming.PNG

Thanks,

Tadz

10 REPLIES 10

Mihir Mohanta
Kilo Sage

Hi Cris,



You want to disable [rename] link of attachment globally in your instance or in a specific table?



Thanks,


Mihir


Hi Mihir,



If possible in the specific catalog item only.


Is there a solution for a specific table?


Maybe we can dotwalk it to the catalog item



Thanks,



Tadz


You can disable this rename link globally by modifying below ui page and macro.



UI macro: attachment_entry



UI page: attachment




Thanks,


Mihir


Kalaiarasan Pus
Giga Sage

This is a hack and I am not aware of a better way to do this.



jQuery("a.attachment:contains('[rename]')").hide();