Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

How to display Attachments in a display window from the Ticket Attachment Widget in the SP

Peter Williams
Kilo Sage

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

 

PeterWilliams_0-1742929126877.png

 

5 REPLIES 5

SNAdmin47
Kilo Sage

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!

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()
});

PeterWilliams_0-1767625802337.png

 





SNAdmin47
Kilo Sage

Thanks for sharing, appreciate it! 😁

NP Mark it Accept as solution or helpful if it works for you