HTML Help text

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2016 08:49 AM
Does anybody know of a way to make it so that HTML shows in the help test now that ServiceNow is escaping it? We obviously do not want to set glide.ui.escape_text to false. Just wondering if there are any other workarounds before we have to upgrade to Fuji Patch 12 Hot fix 1. We have tables setup to show what the different choices mean on a list collector.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2016 12:31 PM
Hi Brian,
Try this script on onload, it should work for this example. Ignore my previous script. The script below will ensure you can display html as html for all the help text on the page.
$j(".sc-help-text" ).each(function( index ) {
var html = $j(this).text();
var regex = /(https?:\/\/([-\w\.]+)+(:\d+)?(\/([\w\/_\.]*(\?\S+)?)?)?)/ig
var replaced_text = html.replace(regex, "<a href='$1' target='_blank'>$1</a>");
$j(this).html(replaced_text); // If this doesnt work we can empty the tag and append the replace_text to $j(this)
});
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2016 10:44 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2016 05:18 AM
Hello Ricky,
I found this code in another post and it worked for me. I used it in a on load script.
- $j(function($){
- $('table.help_table td:first-child:not([data-htmlized=true])').each(function(){
- var help = $(this);
- help.data('htmlized','true').html(help.text());
- });
- });
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2016 04:43 PM
Hi Brian,
This code works fine for me as well but i want that help text to be seen at all times instead of the user clicking on the more information button.
Do you know how to get that ?
Thanks,
Praveen.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2016 01:53 AM
Hi Praveen,
Please refer below link to show up help-text all times.
Show/Hide Service Catalog Variable Help Text - ServiceNow Guru