- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-16-2021 10:46 PM
Hello all,
Is there a way to make the font size bigger and stay on screen longer in the addInfoMessage(), please let me know how to achieve this.
Thanks in advance,
Akhil.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-16-2021 10:54 PM
Example
BR:
(function executeRule(current, previous /*null when async*/) {
// Add your code here
var message = '<font size="7">My Message</font>';
gs.addInfoMessage(message);
})(current, previous);
Output:
Regards
Ankur
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-16-2021 10:50 PM
Hi Sai,
There is a property to modify the font size,
css.outputmsg.info.text.font-size
For error - css.outputmsg.error.text.font-size
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-16-2021 10:51 PM
Hi,
you can use html tags to add in the info message and apply font size and style
Regards
Ankur
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-16-2021 10:54 PM
Example
BR:
(function executeRule(current, previous /*null when async*/) {
// Add your code here
var message = '<font size="7">My Message</font>';
gs.addInfoMessage(message);
})(current, previous);
Output:
Regards
Ankur
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-16-2021 10:59 PM
Remember if you modify the system properties then it would be global change on all the tables.
If you require this only for specific tables then you will have to go with the HTML option within the addInfoMessage
Regards
Ankur
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader