- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2022 07:46 PM
Currently I have a BR that popup a message: "Error - This field is mandatory", when trying to change a field in List View.
The way I configured this message is by setting the "When to run conditions" of the BR and in the tab Actions "Add message" is selected and with the message above.
This is working fine, but the styling of the message is like an info message. Is there a way to change this styling more like an Error message?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2022 08:37 PM
Hi,
it's HTML field you can use color etc
OR
you can use script section and use gs.addErrorMessage("Error - This field is mandatory");
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
‎05-22-2022 08:35 PM
Hi,
Try below code in script
Check the Advanced checkbox in BR.
gs.addErrorMessage("YOUR_MESSAGE");
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2022 08:37 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-26-2022 08:59 AM
Hi Ankur, sorry for the late response, at the end I use the second solution:
gs.addErrorMessage("Error - This field is mandatory");
Because using HTML color styling and such, when the error message appears in the list view is not changing the styling.