Render html links in Virtual Agent Table response (scripted)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2022 08:47 AM
When I include a link, e.g., <a href="path/to/my/uri">Hello</a>, in the Virtual Agent Table response script, the link is displayed as plain text. How to allow Virtual Agent to render the link?
Below is my response configuration.
I have set the glide.html.sanitize_all_fields system property to false.
- Labels:
-
Virtual Agent

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2022 08:57 AM
You can use OOB HTML bot response and configure scripted condition for this BOT response.
https://docs.servicenow.com/bundle/rome-now-intelligence/page/administer/virtual-agent/reference/va-bot-responses.html#va-html-output
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2022 09:03 AM
The table is populated via script. Static html would not work.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2022 09:31 AM
In your scripted response, are you populating hyperlinks in HTML objects?
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2022 09:50 AM
Yes, I am populating hyperlinks in the scripted response, e.g.
(function execute() {
.....
html = '<p><a href="/some/uri/">Hello</a></p>';
return html;
})();