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

Anurag Tripathi
Mega Patron
Mega Patron

Show field message doesn't support HTML so you cant add a hyperlink there. Just not possible OOB

-Anurag

Sohail Khilji
Kilo Patron
Kilo Patron

Hi @prem kumar2 ,

 

As suggested by @Anurag Tripathi , it does not support html instead try for a rich text html field lable to define a hyper link...

 


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

prem kumar2
Tera Contributor

using any dom manipulatin can we doo it??

I never recommend it just to add a hyperlink ! Go for alternatives as suggested. 

 

I hope this helps...


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect