- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2024 07:10 PM
I need help to modify and add to this script for the banner to display in RED and bold on top of the catalog item form.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2024 07:38 PM
Hi @Johnson13 you can use html tags, like:
function onLoad() {
g_form.addErrorMessage('<strong>Submission does not guarantee the request will be approved!</strong>');
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2024 07:38 PM
Hi @Johnson13 you can use html tags, like:
function onLoad() {
g_form.addErrorMessage('<strong>Submission does not guarantee the request will be approved!</strong>');
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2024 09:08 PM
Hello @Johnson13 ,
You can write like below
g_form.addInfoMessage('<font style="color:red"><b>**Submission does not guarantee the request will be approved!**</b></font>');
the output will be like the below
Thank you
G Ramana Murthy
ServiceNow Developer

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2024 09:13 PM
Hello,
If you want to show it with Info message, you can do something like this -
function onLoad() {
var message = '<strong style="color:red;">Submission does not guarantee the request will be approved!</strong>';
g_form.addInfoMessage(message);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2024 10:00 PM - edited 10-13-2024 10:01 PM
Hi @Johnson13
Use below script
g_form.addInfoMessage('<font style="color:red"><b>Note: Submission does not guarantee approval of your request. Please ensure all necessary information is provided.</b></font>');
Thanks
Eshwar