Text color change for alert message

Hafsa1
Mega Sage

Is it possible to change some part of text's color shown using alert message in catalog client script? like

alert("If you choose category as personal laptop, then you have to attach <font color='red'>email approval from your manager</font> with this request.");

 

I want only "email approval from your manager" in red color and rest will be as standard one.

7 REPLIES 7

Omkar Mone
Mega Sage

Varsha Jadhav1
Giga Expert

Hafsa1
Mega Sage

No that is not the requirment. Only color of some part of whole alert message to be changed. 

you can not do that by using alert. 

if you want then you can try to use Sweet alert JS . 

 

adding link here for further details. 

 

https://sweetalert.js.org/guides/

https://community.servicenow.com/community?id=community_question&sys_id=c3d6cba5db1cdbc01dcaf3231f96...