- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2020 10:23 AM
How can I format url's in comments through applying a template that makes the url an active hyperlink?
I have tried simply including the full url and bracketing the url in [code][/code] but it applies as plain text.
Examples: https://cardno.service-now.com/kb_view.do?sysparm_article=KB0010151
[code]https://cardno.service-now.com/kb_view.do?sysparm_article=KB0010151[/code]
Thank you,
Jason S.
Solved! Go to Solution.
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2020 11:54 AM
Thank you - I will try that method also; however, I kept playing around with it and was able to get this to work also using the KB article permalink:
[code]<a href="https://cardno.service-now.com/kb_view.do?sysparm_article=KB0010151">How To Reset your Cardno Password</a><br />[/code]
I put the break tag in because I needed to go back to plain text after the link. When the comments are posted in the incident form, then it converts it to an active link.
Kind Regards!
Jason S.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2020 10:45 AM
Hi JasonS
Creating a link in an article
- Select the text to link.
- Click the Insert/Edit link icon
on the Editing Toolbar.
- Paste the complete link in the URL box (including http:// or https://)
- Choose Target: New window (_blank).
- Click OK.
for more detail refer block for how to insert hyper link in kb artical.
https://it.umn.edu/servicenow-knowledge-create-link-in
If it help mark helpful or correct
Thanks and regards
Anil

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2020 11:12 AM
Hi,
In client templates, you would create a Notification Email Script like:
Name: knowledgeLink
var instanceName = 'instance.service-now.com'
template.print("<a href=\'" + instanceName + "nav_to.do?uri=kb_knowledge.do?sys_id=" + current.sys_id + "\'>"+current.number+"</a>");
and call it in your client template like:
Body: ${mail_script:knowledgeLink}
Please hit helpful or correct if this helps.
Thanks
Swapnil

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2020 11:16 AM
Comments against knowledge articles are stored in a string field in the database, so you won't be able to render a clickable hyperlink in the comment field if KB Articles.
More specifically, they are stored in the comments field of the Knowledge Feedback table (kb_feedback) If this field was an html field, you could do what I think you're asking, but it's not possible with a string field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2020 11:54 AM
Thank you - I will try that method also; however, I kept playing around with it and was able to get this to work also using the KB article permalink:
[code]<a href="https://cardno.service-now.com/kb_view.do?sysparm_article=KB0010151">How To Reset your Cardno Password</a><br />[/code]
I put the break tag in because I needed to go back to plain text after the link. When the comments are posted in the incident form, then it converts it to an active link.
Kind Regards!
Jason S.