The CreatorCon Call for Content is officially open! Get started here.

How to insert alert message box in to knowledge article?

FElizabet
Tera Contributor

I would like to create an article with an alert message box (with my own text) in side the article. Does someone know how to do it?

1 ACCEPTED SOLUTION

Eoghan Sinnott
Kilo Sage
Kilo Sage

Hi, 

 

You could use something like the following in the Source Code.

 

 

EoghanSinnott_0-1760364101531.png
 

<style>
.alert-box {
padding: 15px;
background-color: #ffcc00; /* Change this for different alert types */
color: #333;
border: 1px solid #e6b800;
border-radius: 5px;
font-family: Arial, sans-serif;
width: 300px;
margin: 20px auto;
text-align: center;
}
</style>
<div class="alert-box">⚠️ <span style="font-size: 10pt;">This is your custom alert message!</span></div>

 

and obviously update the message to your own text as required.

 

Regards,

Eoghan

 

🌟 ServiceNow Rising Star 2025

If you found my reply helpful, please consider clicking Helpful or Accept as Solution to assist others in the community!

 

View solution in original post

2 REPLIES 2

Eoghan Sinnott
Kilo Sage
Kilo Sage

Hi, 

 

You could use something like the following in the Source Code.

 

 

EoghanSinnott_0-1760364101531.png
 

<style>
.alert-box {
padding: 15px;
background-color: #ffcc00; /* Change this for different alert types */
color: #333;
border: 1px solid #e6b800;
border-radius: 5px;
font-family: Arial, sans-serif;
width: 300px;
margin: 20px auto;
text-align: center;
}
</style>
<div class="alert-box">⚠️ <span style="font-size: 10pt;">This is your custom alert message!</span></div>

 

and obviously update the message to your own text as required.

 

Regards,

Eoghan

 

🌟 ServiceNow Rising Star 2025

If you found my reply helpful, please consider clicking Helpful or Accept as Solution to assist others in the community!

 

FElizabet
Tera Contributor

Thank you @Eoghan Sinnott !