How to disable attachments in incident form by using acl?

rajudev
Kilo Contributor

can you please provide detail information. thanks in advance.

4 REPLIES 4

Chuck Tomasi
Tera Patron

While I don't know of a way to do it with ACLs, you can write an onLoad client script on the incident table that does this:



g_form.disableAttachments();



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


Hi Chuck Tomasi, I can't open this link starting with https://wiki.servicenow.com ...

Ahmed Hmeid1
Kilo Guru

If the user doesn't have write access to the table then the user will not be able to attach (and the icon will not be visible).


You can create a READ ACL on the sys_attachment table and this will prevent the user seeing the attachments but will still be able to upload additional ones.



As Chuck said, there is a glideform function that does it, but of course it's only protects from the client side (nothing stopping the user overriding this),



Depending on how serious an issue this potentially is for you, you could implement a business rule and run current.setAbortAction(true) on insert (based on conditions) - this way even if a user knows enough to disable it then it's still prevented


Sohail Khilji
Kilo Patron
Kilo Patron

Please join the below SERVCENOW INDIA FORUM @Telegram App

This group is focused on growing Servicenow skills/Learning/Quries/Meetups/Certifications/dumps/courses/interview/MockTest etc..


Servicenow India Forum


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect