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

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

Is this attribute correct?
Setting the value did not change anything.

As explained in the explanation, I tried setting it to "'view', 'download' or 'all'" and also to True...

 

Document Viewer Audit.JPG

@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

Oops, I misread. .
It worked! Thanks!

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