Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Add notes to label in attachment

Souvick6917
Tera Contributor

I have a cosmetic requirement to add additional hint/notes to attachment icon on Incident table.

Currently OOB I am seeing, 'Manage Attachments' on hovering the cursor over the attachment icon. I want to add ' Manage Attachments. Please dont add sensitive documents'.

 

Can anyone help with the requirement.

 

Regards

Souvick

 

1 ACCEPTED SOLUTION

Sandeep Rajput
Tera Patron
Tera Patron

@Souvick6917 Here are the steps using which you can update the text of Manage Attachments.

 

1. Navigate to System UI >>Messages

2. Filter the message list as follows with Message = Manage Attachments.

Screenshot 2024-07-10 at 1.36.36 PM.png

3. Open the record and update the message field.

Screenshot 2024-07-10 at 1.37.41 PM.png

This is how the end result looks.

Screenshot 2024-07-10 at 1.34.57 PM.png

Please mark the response helpful and accepted solution if it manages to address your question.

View solution in original post

3 REPLIES 3

Dnyaneshwaree
Mega Sage

Hello @Souvick6917 ,

Create onload client script on Incident table and use below code and update it accordingly:

function onLoad() {
  var attachmentIcon = document.querySelector('.attachment');
  if (attachmentIcon) {
    attachmentIcon.setAttribute('title', 'Manage Attachments. Please don\'t add sensitive documents');
  }
}

Or 
modify the existing attachment_link macro using below logic:

<g:tooltip>
  ${gs.getMessage('Manage Attachments. Please don\'t add sensitive documents')}
</g:tooltip>



 

Please accept my solution if it works for you and thumps up to mark it as helpful.
Thank you!!

Dnyaneshwaree Satpute
Tera Guru

Sandeep Rajput
Tera Patron
Tera Patron

@Souvick6917 Here are the steps using which you can update the text of Manage Attachments.

 

1. Navigate to System UI >>Messages

2. Filter the message list as follows with Message = Manage Attachments.

Screenshot 2024-07-10 at 1.36.36 PM.png

3. Open the record and update the message field.

Screenshot 2024-07-10 at 1.37.41 PM.png

This is how the end result looks.

Screenshot 2024-07-10 at 1.34.57 PM.png

Please mark the response helpful and accepted solution if it manages to address your question.

Mark Manders
Mega Patron

You can find that message here: https://your_instance.service-now.com/now/nav/ui/classic/params/target/sys_ui_message.do%3Fsys_id%3D...


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark