how to set alert text in red color

shweta14
Tera Contributor

How to set alert text in red color

i have requirement on ui page 

on click of check box field alert should be visible in red text

 

3 REPLIES 3

Sagar Pagar
Tera Patron

Hi @shweta14,

 

Take a look at old thread - Show Error message on UI page 

 

Thanks,
Sagar Pagar

The world works with ServiceNow

can we user alert like pop up?

hello @shweta14 ,

 

i think in alert we can apply font styles .

 

But i can suggest an alternative for this .

You can use SweetAlert JS to display it accordingly .

 

Refer below link

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

 

Hope this helps 

Mark the answer correct if this helps you 

 

Thanks

Mohith Devatte