Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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
Kilo Patron

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

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  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

I would like to a add a way to access another link of the instance in ticket page of the RITM (the image that I've showed), apologize for not being clear

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