How to Disable Clicking on a attachments file in popup?

12uy
Mega Sage

Hello everyone,

I want to prevent users from being able to click on the red circled area of the attached file in the preview popup.

Is there any way to do that?

Thank you!

12uy_0-1719803217822.png

 

 
4 REPLIES 4

abirakundu23
Mega Sage

Hi @12uy ,

Please write onload client script on form level & try.

abirakundu23_0-1719809243512.png

Please mark helpful & correct answer its worthy for you.

I tried using the client script, but it doesn't seem to work in the list view.

Musab Rasheed
Tera Sage
Tera Sage

I think only way to do is to first check view name, if view is not sys_popup then create new view then hide attachment is view is sys_popup. follow below example.

https://www.servicenow.com/community/itsm-forum/select-what-fields-are-visible-on-a-record-preview/m...

Please hit like and mark my response as correct if that helps
Regards,
Musab

Ankur Bawiskar
Tera Patron
Tera Patron

@12uy 

you cannot do that

you can disable the i icon at the list level; that's what I will suggest.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader