how to display URL link from message

chanikya
Kilo Sage

Hi,

i have used below script , it is not displaying URL link in messge

g_form.showFieldMsg("testing" + "<a href='" + 'https://www.doc.servicenow.com '+ "'>" + "</a>" + " has been created");

22 REPLIES 22

Hi,

 

var link ="Testing" + '<a href='+"https://www.google.co.in"+'>ticket</a>'+"has been created";
gs.addInfoMessage(link);

 

 

find_real_file.png

any suggestions please

Jaspal Singh
Mega Patron
Mega Patron

Can you kindly paste entire script. As I tested the same & it works well. 

 

Thanks,

Jaspal Singh

 

Hit Helpful or Correct on the impact of response.

Hi Jaspal,

 

var link ="Testing" + '<a href='+"https://www.google.com"+'>ticket</a>'+"has been created";
gs.addInfoMessage(link);

find_real_file.png

can you try removing the '+ on both sides of the url?


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!