g_form.showFieldMsg not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2018 08:01 PM
Hi All,
I am encountering an issue now where g_form.showFieldMsg("field name","error message","error") is not loading error message in London Service Portal for a onChange Catalog Item client script.
Would like to seek advice on this issue.
Thanks a lot for your help!
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2023 06:18 AM
worked for me as well
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2025 07:10 AM
Hi, it really works, but do you know why clearing the value BEFORE showing the message actually works?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2025 07:51 PM
I think its cuz clearing value also tells sn there is nothing left to validate so it clears the err msg too. in fact not clearing the value after displaying error made it work not moving it before display error. so display error must work with or without clear value before it as long as not after it. that's my guess.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2018 08:23 PM
Hi,
Use this g_form.showErrorBox('field name','message',true).
Hope this will work.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2018 08:52 PM
Hi,
In service portal use showFieldMsg() function with below syntax:
g_form.showFieldMsg('<variable_name>', 'msg', 'info', false);
I hope this helps.Please mark correct/helpful based on impact
Thanks,