I want to change the download button for attachments

bonsai
Mega Sage

I want to change the button "Download" after uploading an attachment to "View"

view_download.JPG


Only the "View" button appears in the Knowledge Management record, where is this controlled?
I want the "View" button to appear in all applications.

3 ACCEPTED SOLUTIONS

Ankur Bawiskar
Tera Patron
Tera Patron

@bonsai 

document viewer should be enabled for your table

Activate Document Viewer for the tables where you want to use it.

  1. Navigate to System Definition > Dictionary.
  2. Search for the table i.e. incident, open the record with the type field Collection.
  3. Enter Use Document Viewer in the Attribute field.
  4. Enter true in the Value field.

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

View solution in original post

Juhi Poddar
Kilo Patron

Hello @bonsai 

Steps to follow:

  1. Navigate to ALL -> System Definition -> Dictionary

    JuhiPoddar_0-1740132121473.png

  2. Filter the list by applying query. (Note: Modify the table name) 

 

internal_type=collection^name=sys_user​

 

  • Open the filtered record and in the attribute section add:

 

use_document_viewer=true​

JuhiPoddar_1-1740132468926.png

 

 

Result: 

JuhiPoddar_2-1740132561444.png

The above steps will enable you to view the document directly instead of downloading them.

Hope this helps!

 

"If you found my answer helpful, please like and mark it as an "accepted solution". It helps future readers to locate the solution easily and supports the community!"

 

Thank You
Juhi Poddar

View solution in original post

@bonsai 

add this in the attributes for collection field

use_document_viewer=true​

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

View solution in original post

12 REPLIES 12

GopikaP
Mega Sage

Hi @bonsai , Please refer - Open Files with Document Viewer at table sys_attac... - ServiceNow Community. A similar requirement, though not an exact match, but it might point you in the right direction.

Ankur Bawiskar
Tera Patron
Tera Patron

@bonsai 

both are in same instance?

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

Both are the same instance.

The left is the knowledge record form screen, and the right is the incident record form screen.

@bonsai 

check my below response on how to enable the document viewer

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