gs.addinfomessage() not working on portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2019 09:19 AM
Hi Developer,
While testing portal i was used gs.addInfomessage("text"/variable name) to debug but today if i will write this no message is showing . Could anyone please suggest this.
Regards,
Manmath
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2019 09:23 AM
Hi,
please check the following threads, it will be useful for your need:
https://hi.service-now.com/kb_view.do?sysparm_article=KB0692690
If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.
Thank you
Cheers
Alberto

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2019 09:24 AM
Try:
spUtil.addInfoMessage("Hi!");
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2019 10:10 AM
Hi Manmath,
in order to use addInfoMessage() function in Service Portal, you have to add 'spUtil' in your client script function parameter:
Client Script:
function(spUtil,youOtherParameters){
spUtil.addInfoMessage('your text');
}
Let me know if it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2019 08:57 PM
Hi Ecalvaresi,
I am using gs.addinfomessage() in server side. Before it was working but not displaying anything .
Regards,
Manmath