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
Mega 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

4 REPLIES 4

Dr Atul G- LNG
Tera Patron

Did you try using external content?

 

https://www.servicenow.com/community/servicenow-ai-platform-forum/how-to-render-external-website-in-...

 

https://www.servicenow.com/docs/r/servicenow-platform/service-catalog/t_AddingContentItemServiceCata...

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

Ankur Bawiskar
Tera Patron

@Med99 

You shared screenshot of portal ticket page but you are referring to classic RITM form?

what's your exact requirement?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

I would to add a way to access another link of the instance in the ticket page (my request) shown in the image , sorry for not having been clear

Tanushree Maiti
Mega 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: