Changing the style of addInfoMessage, setFieldMsg, Variable 'More Information'

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2017 06:52 PM
Hi All,
With the new themes in UI16 and the ability to customise them, the styling of the addInfoMessage etc boxes often do not align with the color scheme.
Is there a way to change that styles of all these across the entire toolset, in the cleanest way possible ? (ie. no client scripts, & dom hacks)
As you can see, purple and blue don't mix
Examples
Variable 'More information'
g_form.showFieldMsg()
g_form.addInfoMessage()
ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2017 07:40 AM
Hi Paul,
This does not really answer your question, but just so you have it for future reference:
https://www.servicenowguru.com/scripting/ui-info-error-message-cheat-sheet/
Also, you can add types of Annotations under System UI-> Form Annotation Types, which can add a nice touch sometimes.
harel
Edit:
Also found this, which might be what you are looking for: Re: addInfoMessage and this: Community Code Snippets - Logging: Some Notes on Business Rules

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2017 06:48 PM
Judging by the silence of the community on this one, I guess I should probably raise an enhancement request for the ability to style these!
ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-07-2017 04:52 AM
Have a look at this link Paul .Should solve your issue:
Community Code Snippets - Logging: Some Notes on Business Rules
Regards
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-07-2017 04:55 AM
Also this link is cool:
How to Show Images in Info Messages in ServiceNow | SN Commander
It shows how to add images to the message also.
Regards
Paul