Is it possible to open a file in a different tab rather than downloading the file

janetakiyam
Mega Sage

Hi community,

I have a file type where document viewer is not support by servicenow (which are none of Microsoft Office, PDF, PNG, JPEG files)

 

I am aware that file types that are not supported by servicenow will be downloaded by default, but are there any ways which I can view the attachment on instance or open the attachment as a new tab/window?

3 REPLIES 3

Dr Atul G- LNG
Tera Patron

Hi @janetakiyam 

Might be helpful

 

https://www.servicenow.com/community/next-experience-forum/how-to-preview-attachment-in-the-new-tab-...

https://www.servicenow.com/community/knowledge-managers/how-do-open-a-pdf-file-in-a-kb-articles-into...

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

Ankur Bawiskar
Tera Patron

@janetakiyam 

you might have to use some custom solution etc or use external javascript libraries for this

It will be somewhat challenging to achieve your requirement and even if you achieve it using external libraries then remember it has dependency.

For example: PPT cannot be viewed in document viewer so you might have to use external library

How to build a PowerPoint (PPT/PPTX) viewer in JavaScript 

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

@janetakiyam 

Hope you are doing good.

Did my reply answer your question?

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