Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more 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
Mega 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
Mega 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 !