Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

How to Add a Custom Link on RITM Form Without Cloning the Widget?

Med99
Tera Contributor

Hello,

I would like to add a button or a hyperlink in the classic Requested Item (RITM) form that redirects to another link within the instance.

Is it possible to do this only for a specific catalog item (i.e., only for its related Requested Items), without impacting other catalog items and without cloning the Requested Item widget? Thanks in advance

1 ACCEPTED SOLUTION

Tanushree Maiti
Giga Sage

Hi @Med99 

 

To add a clickable hyperlink to a Service Now RITM work note, wrap the HTML anchor tag (<a href="...">...</a>) inside [code] tags within your script

e.g You can add below snippet of code to the existing BR which is creating RITM to include the hyperlink in the activity stream :

 

current.work_notes = 'RITM [code]<a href="'+gs.getProperty('glide.servlet.uri')+'nav_to.do?uri=sc_req_item.do?sys_id='+sysID+'" target="_blank">RITM number</a>[/code] has been updated.';

 

Ref:

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB2475547#:~:text=Issue,Related...

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

View solution in original post

6 REPLIES 6

@Med99 

so it's on ticket page.

then you can add that link in comments field as that is exposed on ticket page for end user

where are you stuck?

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Tanushree Maiti
Giga Sage

Hi @Med99 

 

To add a clickable hyperlink to a Service Now RITM work note, wrap the HTML anchor tag (<a href="...">...</a>) inside [code] tags within your script

e.g You can add below snippet of code to the existing BR which is creating RITM to include the hyperlink in the activity stream :

 

current.work_notes = 'RITM [code]<a href="'+gs.getProperty('glide.servlet.uri')+'nav_to.do?uri=sc_req_item.do?sys_id='+sysID+'" target="_blank">RITM number</a>[/code] has been updated.';

 

Ref:

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB2475547#:~:text=Issue,Related...

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: