glide modal display message

service buzz
Tera Contributor

Hi ,

 

I am unable to put spaces between see and hyperlink.

please refer the below code.

servicebuzz_0-1680238238556.png

var kbSysId = "e97ee81eff6002009b20ffffffffffe0";
var kbNum = "KB1000011";

var hyperlink = "<a href='/kb_knowledge.do?sys_id=" + kbSysId + "' target='_blank'> " + kbNum + "</a>";
var message = "Incidents with priority1  please ,see" + hyperlink+ ".";
var dialog = new GlideModal("alert_modal",true);
dialog.setTitle("alert");
dialog.setPreference("title", message);
//dialog.renderWithContent(message);
dialog.render();

12 REPLIES 12

Prince Arora
Tera Sage
Tera Sage

@service buzz ,

 

Try two approaches and check what would be work for you:

 

1) var hyperlink = "&nbsp;<a href='/kb_knowledge.do?sys_id=" + kbSysId + "' target='_blank'> " + kbNum + "</a>";

 

2) var message = "Incidents with priority1  please ,see  " + hyperlink+ ".";    // add space after see

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful based on the Impact.

Hey thansk for ur response I used first one the KB article is moving down

and second approach is not working

request for any other suggestions please

servicebuzz_1-1680239794605.png

 

@service buzz ,

 

Can you share your script which you have been modified please

here alert_modal is a ui page which i am using to display ok button 

 

var hyperlink = "<br></br<a href='/kb_knowledge.do?sys_id=" + kbSysId + "' target='_blank'> " + kbNum + "</a>";
var message = "Incidents with priority1  please ,see" + hyperlink+ ".";
var dialog = new GlideModal("alert_modal",true);
dialog.setTitle("alert");
dialog.setPreference("title", message);
//dialog.renderWithContent(message);
dialog.render();