How to Disable Clicking on a attachments file in popup?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2024 08:09 PM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2024 09:48 PM
Hi @12uy ,
Please write onload client script on form level & try.
Please mark helpful & correct answer its worthy for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2024 08:58 PM
I tried using the client script, but it doesn't seem to work in the list view.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2024 10:10 PM
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.
Regards,
Musab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2024 10:54 PM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader