Hyperlink in fields

Vedavalli
Mega Sage

Hi
I want to populate the short description,work notes with ServiceNow | INC00001(as hyperlink such that when i click on it should take to record of that incident).

2 ACCEPTED SOLUTIONS

Tanushree Maiti
Tera Sage

Hi @Vedavalli 

 

Short Description is a plain text field, so you cannot show a hyperlink in it.

If you create any HTML type Custom description field , there you can populate hyper link.

 

Also to Add hyperlink in Worknote/comment (Journal field), you need to use  [code] [/code] tag to  insert hyperlink in worknotes and comments.

 

You can add following code snippet to the existing BR which is creating incident to include the hyperlink :

 

Sample Code:

current.work_notes = 'Incident [code]<a href="'+gs.getProperty('glide.servlet.uri')+'nav_to.do?uri=incident.do?sys_id='+sysID+'" target="_blank">INC Number </a>[/code] has been created.';

 

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

@Vedavalli 

Hope you are doing good.

Did my reply answer your question?

💡 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

View solution in original post

5 REPLIES 5

@Vedavalli 

Hope you are doing good.

Did my reply answer your question?

💡 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