document viewer issue

JohnnySnow
Kilo Sage

Hi Team,

 

We have enable document viewer in our dev env so that the users can view the attachment, by default I can see that when you click on the document it downloads the file instead of viewing it. This seems to be an OOTB behavior. We can see a 'view' button besides the attachment which lets us view the file in the document viewer. Is it possible to change the behavior of downloading the file to viewing the file in document viewer when a user clicks on the attached file?

 

Thanks
Johnny
Thanks
Johnny

Please mark this response as correct or helpful if it assisted you with your question.
3 REPLIES 3

maroon_byte
Mega Sage

Did you configure the table collection as mentioned in below link:

https://docs.servicenow.com/bundle/vancouver-platform-user-interface/page/administer/form-administra...

 

Document Viewer supports viewing various file types in the platform including UTF-8 character encoded PDF file. The maximum document file size is 50 MB.

You can view the following file types:
  • MS Word (.doc) and (.docx)
  • MS PowerPoint (.ppt) and (pptx)
  • MS Excel (.xls) and (.xlsx)
  • PDF
  • PNG
  • JPEG

@maroon_byte yes, it is all working fine, only thing is with the default behavior of downloading the file (when clicked on file name) instead of viewing the file , I want to know if that's possible.

 

Thanks
Johnny

Please mark this response as correct or helpful if it assisted you with your question.

Oh I get it now... next to the attachment you do see [view] link but you want the view behavior not when [view] us clicked but when the user clicks on the attached file.... sry, long weekend brain freeze.

 

I think its possible but not recommended by ServiceNow as per below link due to high security concern:
https://docs.servicenow.com/bundle/vancouver-platform-security/page/administer/security/reference/fo...