The CreatorCon Call for Content is officially open! Get started here.

How to add hyperlink in showfieldmssg() inn catalog item

SHALIKAS
Tera Guru

I want to add hyperlink as follows but it is not working

function onChange(control, oldValue, newValue, isLoading) {
   if (isLoading || newValue == '') {
      return;
   }
  g_form.clearMessages();
 
   var s=['database_server','application_server'];
   if(s.includes(newValue))
   {
   
    var help='<a href="https://ervice.com">Add a Business Application </a>request to add it to ServiceNow';
g_form.showFieldMsg('application',help,'info');
   }
   else{
    g_form.hideFieldMsg('application');
  }
 

}
 
But link is not getting created. How to do this
1 ACCEPTED SOLUTION

Juhi Poddar
Kilo Patron
Kilo Patron

Hello @SHALIKAS 

  • You cannot populate link using g_form.showfieldmsg().
  • The g_form.showFieldMsg() method is primarily used to display messages (such as error, warning, or informational messages) below a field.

Hope this helps!

 

"If you found my answer helpful, please like and mark it as an "accepted solution". It helps future readers to locate the solution easily and supports the community!"

 

Thank You
Juhi Poddar

View solution in original post

5 REPLIES 5

Hi @SHALIKAS ,

 

I had given you alternative solution for this. i think i also deserve accepted solution.

The community now supports multiple accepted solutions, so you can accept more than one answer.