helptext for description with hyperlink

prem kumar2
Tera Contributor

Hi @Ankur 

issue facing:

1.we are not able to put a hypelink in showfeild message for description feild in task table
2.Second thing is we want to have the helptext for description feild on every table which is extending the task table.
for single table we can able to manage by following code 

if (g_form.getTableName() == 'problem') {
            message_link = gel('problem.description_fieldmsg');
           
            message_link.innerHTML = '<div class="fieldmsg-container" id="problem.description_fieldmsg" aria-live="polite"><div class="fieldmsg notification-info">' + '<text>' + 'Please do not input or attach Confidential and/or Customer information into ServiceNow records; this info will be removed. Visit the Data Classification ' + '</text>' + '<a href=' + '"https://some hyperlink"' + 'target="_blank"' + '>' + 'Job Aid' + '</a>' + '<text>' + ' for info' + '</text>' + '</div>' + '</div>';
 

        }
please provide any suggestions or possible ways to accomplish it.
7 REPLIES 7

You can make the label as hyperlink indicating there is help, that is what I would recommend,

What is the usecase here that you want to achieve this using DOM which is not recommended?

 

EG Priority field on incident, here is the Label for it , you can do the same to add a link here

AnuragTripathi_0-1709575276137.png

 

-Anurag

prem kumar2
Tera Contributor

Under the description feild i need to show the help text as follows but it should be effected to all the tables description which extended from the task table like incident problem etc.

premkumar2_0-1709621843026.png

 

If you add that to the task table, it will reflect on all tables that are extended form the task.

Please try this in  dev instance before production.

-Anurag