- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2019 06:53 AM
Hi all, i am new to service now, just wanted to know what is the use of 'message' field in the Client script form. Please clarify this with a simple example if possible...
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2019 09:40 AM
The messages can be anywhere used where messages are applicable. The example is an error message, you could also use this on the info message, alert, etc..
You will find the Messages if you navigate to "System UI > Messages".
Below the message from the above example:
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
---
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2019 06:14 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2019 06:17 AM
Indeed, one per line, with separated with an enter.
An example from our environment:
Kind regards,
Mark
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2019 07:23 AM
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2020 01:36 PM
The content of the Message field is not required. If you use getMessage() in the code, it will get the correct Message from the sys_ui_message table and display that to the user even if the Message field is empty.
My guess is that it should still be used though: when a script is loaded from the server, I think that the messages are loaded with it; This prevents a server roundtrip when a message has to be displayed to the user, so it is good for performance.