Modifying Attachment paper clip icon UI Page

ramwons
Kilo Expert

Hi,

I want to modify the UI page related to attachment paper clip icon specifically for sc_req_item & sc_request table and not for other tables.

Is there any way I can override the changes for these 2 tables not globally. 

Best Regards,

Ram

3 REPLIES 3

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

Hi @ramwons 

there is no way to achieve that, you can only change it globally in the platform.

Regards

Alberto

Narsing1
Mega Sage

You can do something like this

 

  • First Hide the Attachment Icon from these Tables using a Client Script
  • Create Seperate UI Action for Attachments with Icons.  You can provide Icons to the UI Actions like this
    • https://www.servicenowguru.com/scripting/client-scripts-scripting/button-colors-icons/ 
  • On the UI Action Script, you may use saveAttachments built in function to open a window to Attach.  I believe this statement will work on the script, but never tried like that.
    • if (typeof saveAttachment === "function" && typeof g_form !== "undefined")
      saveAttachment("sc_req_item", g_form.getUniqueValue(), true);

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Do you want to change the behavior of the Attachment Paper Clip or the Icon itself? The Icon I don't know, the behavior of the Attachment Paper Clip can be changed.

https://your-instance.service-now.com/nav_to.do?uri=sys_ui_page.do?sys_id=b1b390890a0a0b1e00f6ae8a31ee2697

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn