How to add Url in additional comments.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2023 04:17 AM
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 .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2023 04:45 AM - edited 04-20-2023 04:45 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2023 04:55 AM
Where I need to write this code? In BR?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2023 05:02 AM
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:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2023 04:53 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader