- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2020 05:48 AM
Hi all,
I am using gs.getMessage() in business rule?
I am wondering how to use it in client script? I have tried g_form.getMessage(), but not working.
Regards,
Ming
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2020 05:56 AM
Hi,
I believe the client side allows only 1 parameter; server side allows 2 parameters
check below links for help
Second Parameter of getMessage() on Client Side
gs.getMessage() - The Second Parameter
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
08-04-2020 05:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2020 05:55 AM
Can I use second parameter as message varient?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2020 05:56 AM
Hi,
I believe the client side allows only 1 parameter; server side allows 2 parameters
check below links for help
Second Parameter of getMessage() on Client Side
gs.getMessage() - The Second Parameter
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
08-04-2020 06:00 AM
Hi there,
You can just use the message field in combination with getMessage in Client Scripts and Catalog Client Scripts.
Do apply the message field! This preloads your message. If you don't do this, on initial load your message is not loaded.
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP
---
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