Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to make bold letter in the alert message in the client script

chandan31
Tera Contributor

alert('We’ve moved. The page you are trying to access is no longer in use.')

I want the bold the words (We’ve moved! ) using xlient script with the help of Alert message .

 

Can you help me 

 

 

Thanks,

Chandan

3 REPLIES 3

Community Alums
Not applicable

You can use UTF-8 bold chars - try this here https://yaytext.com/bold-italic/

 

Community Alums
Not applicable

Hi @chandan31 ,

This is not possible you can use g_form.addInfoMessage 

var message = '<span style="font-weight: bold;">We’ve moved. </span>  The page you are trying to access is no longer in use.';
   g_form.addInfoMessage(message);

 

Please mark my answer correct and helpful if this works for you

Thanks and Regards 

Sarthak

Community Alums
Not applicable

Hi @chandan31 ,

I hope my response helps you to resolve your query.

Please mark my answer correct and helpful if this works for you

Thanks and Regards 

Sarthak