How to add clickable URLs in comments

Spandana P
Tera Contributor

Hello ,

We have this comments field which is of Journal input type on form, with this field we communicate with end users, Currently this field is not useful to send clickable links, just the text could be sent but sometimes we would need to send the end users Links/URLs which are clickable.

 How to achieve this with out the need to create a new field for URLs as we are not supposed to create any new fields due to license issues?

 

 

 

Thanks,

Spandana.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron

Hi,

you need to wrap the html tag within [code][/code]

Example

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

Regards
Ankur

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

View solution in original post

9 REPLIES 9

Ankur Bawiskar
Tera Patron

Hi,

you need to wrap the html tag within [code][/code]

Example

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

Regards
Ankur

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

Hello,

This works correctly in the comments field; however, when the same comment is included in the email, the formatting breaks and the [code] tag is displayed.

Aman Kumar S
Kilo Patron

Hey,

You can refer to below article to achieve the same:

insert hyperlink in additional comments

 

Feel free to mark correct, If I answered your query.

Will be helpful for future visitors looking for similar questions 🙂

Best Regards
Aman Kumar

Spandana P
Tera Contributor

Hi @Ankur Bawiskar and @Aman Kumar ,

I'm sorry if this is noob, but we are not adding links embedded in code, we do it randomly just when we need to communicate with them, so my question here is do we need to wrap the html tag within [code][/code] everytime we randomly send links?

or is there any way I can do it like if in my comments contains 'https://' or 'www' or '.com'  etc, then it gets appended with these tags?