insert hyperlink in additional comments

priya92
Kilo Expert

Hi

we have scenario where case is linked to RITM and updates on the RITm is copied to case additional comments to be sent to external customer via workflow script of RITM

Snapshot of the code which updates case is as below and this is all working fine 

Now the requirement is we need the comments variable appended with a url  along with RITM variables, basically i need to a way to plug in html anchor tag in side the var comments.

 

 

find_real_file.png

1 ACCEPTED SOLUTION

try

[code]<a href="https://google.com" target="_blank">Google</a>[/code]

View solution in original post

13 REPLIES 13

Willem
Giga Sage
Giga Sage

By default, ServiceNow escapes any HTML code you type in a journal field, and the text is saved exactly as it was entered. To specify HTML formatting in a journal entry, you can use the [code] tag, as follows:

[code]<a href="http://www.service-now.com">ServiceNow</a>[/code]

 (this text will add a hyperlink to the URL)

 

Note:

Administrators can prevent journal fields from rendering HTML code by disabling support for the [code] tag.

  1. Navigate to System Properties > UI Properties.
  2. Clear the check box for Allow support for embedding HTML code by using the [code] tag (the glide.ui.security.allow_codetag property).
  3. Click Save.



Reference: https://old.wiki/index.php/Using_Journal_Fields

Hi Willem,

Thanks  that worked.

Much appreciated!!

 

Regards,

You are welcome. Glad it works.

Have you marked your own reply as Correct by mistake? Kindly mark my answer as Correct.

Thank you! šŸ™‚

Thanks. this is helpful