How to add Url in additional comments.

Ankita dhavale
Tera Contributor

How to add hyperlink in additional comments without using [code][/code] in additional comments because as per client view they are Just typing https://www.google.com something like that in additional comments and it is show as plan text when we post it . 

4 REPLIES 4

Prince Arora
Tera Sage
Tera Sage

@Ankita dhavale 

 

Please use below code:

 

current.comments = '[code]<a href="https://www.google.com/ target="_blank">Google</a>[/code]';

 

If my answer solved your issue, please mark my answer as  Correct & 👍Helpful based on the Impact.

 

Where I need to write this code? In BR?

@Ankita dhavale 

 

Any server side script like BR, UI action you can mention that code, it will work

And without [code][/code] it is not possible.

 

For that you can create a URL type field in the form, it will accept the URL as input like below:

PrinceArora_0-1681992131375.png

 

Ankur Bawiskar
Tera Patron
Tera Patron

@Ankita dhavale 

not possible without the syntax [code][/code] as it's a journal type of field

If my response helped please mark it correct and close the thread so that it benefits future readers.

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