How to display Attachments in a display window from the Ticket Attachment Widget in the SP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2025 11:58 AM
i am looking at the Ticket Attachment Widget in the ServiceNow Portal and i would like to know how to zoom in or open the attachment into a separate window instead of when clicking on the attachment it downloads onto the computer.
I want to be able to view the attachment without downloading it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Peter Williams ,
Did you find a solution to this issue? I'm also trying to identify a solution for the exact same thing... if you have any pointers it would be appreciated.
Many thanks in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Yes i was able to find a solution but i wrote an entirely new Widget to get it to work.
here is the Service Script that i used in my code to make it work
if (!approval.attachments) approval.attachments = [];
approval.attachments.push({
name: attGr.file_name.toString(),
url: '/sys_attachment.do?sysparm_referring_url=tear_off&view=true&sys_id=' + attGr.sys_id.toString()
});
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Thanks for sharing, appreciate it! 😁
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
NP Mark it Accept as solution or helpful if it works for you
