The Zurich release has arrived! Interested in new features and functionalities? Click here for more

How do I disable the ability for users to add attachments to forms at the Task level on the User facing side bit not the backend?

Ccart
Giga Expert

I want to disable the red box below. globally for formats in the same department. 

find_real_file.png

 

But I want users to still be able to attach documents to TASKS via the backend:

find_real_file.png

I looked online and read a few things but I am not sure how to do this when I want to disable on the user side only. Thank you.

1 ACCEPTED SOLUTION

Willem
Giga Sage
Giga Sage

Add CSS to the portal:

 

Per widget Instance, or if you want to remove the Attachment button from the portal completely add to the CSS theme you are using:

find_real_file.png

I am using the OOTB Style La Jolla, which uses the CSS "sp-theme-la-jolla.css".

I added:

sp-attachment-button,

sp-attachment-button ~ span {

       display: none;

}

 

Result:

Before:

find_real_file.png

After:

find_real_file.png

Refer to:

https://community.servicenow.com/community?id=community_question&sys_id=19920b21dbd8dbc01dcaf3231f96...

View solution in original post

6 REPLIES 6

Willem
Giga Sage
Giga Sage

Add CSS to the portal:

 

Per widget Instance, or if you want to remove the Attachment button from the portal completely add to the CSS theme you are using:

find_real_file.png

I am using the OOTB Style La Jolla, which uses the CSS "sp-theme-la-jolla.css".

I added:

sp-attachment-button,

sp-attachment-button ~ span {

       display: none;

}

 

Result:

Before:

find_real_file.png

After:

find_real_file.png

Refer to:

https://community.servicenow.com/community?id=community_question&sys_id=19920b21dbd8dbc01dcaf3231f96...

Willem
Giga Sage
Giga Sage

If you want to remove it only on a certain widget, you can do the following:

On a widget ctrl + right click:

find_real_file.png

 

Scroll down and click instances:

find_real_file.png

For me I am editing the Core one:

find_real_file.png

Add the CSS:

How did you get to this page? I do not see where I can view widgets like this. I am on the widget page as well. Will this work if I want to remove this widget from all forms that meet a certain requirement? For example, I want to remove this for if it belongs to the same Configuration item category. 

The widget that shows the attachment, press and hold the ctrl key on your keyboard and right click. If you do not see the menu popping up, you do not have enough rights. Please mark answers as helpful if you appreciate the help.