How to remove "Manage Attachments" button on forms

Katie A
Mega Guru

Hello, There is a button "Manage Attachments" that shows up on all forms by default. How can we remove this button from forms? We don't want to accept attachments on forms unless it is a specific use case.

4 REPLIES 4

Abhinay Erra
Giga Sage

Add "no_attachment" to the attributes in the dictionary. Go thru section 6 in this link


http://wiki.servicenow.com/index.php?title=Administering_Attachments#gsc.tab=0


Thanks... is it possible to do this on a per-item basis? We don't want to disable it on the entire Request Item table. We have some Request Items that we do want to accept attachments, and others that we don't want to accept attachments.


Community Alums
Not applicable

It's a UI macro called 'attachment_entry'. You can probably deactivate it and see if that's what you want.



Cheers,



Tim


Abhinay Erra
Giga Sage

Yes it should be pretty simple. Write an onLoad client script and check for the conditions and use


g_form.disableAttachments();


http://wiki.servicenow.com/index.php?title=GlideForm_(g_form)#disableAttachments