Catalog Client Script issue with clearValue() and showFieldMsg() in London
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2018 01:26 PM
Just upgrade my DEV instance from Jakarta 8b to London P1H1 and am having an issue I can't quite figure out
In both our DEV and PROD instances, I have the following snippet of code in an onChange Catalog Client Script
function displayMessage(){
getMessage("generic message goes here",function(msg){
g_form.clearValue("field_name");
g_form.showFieldMsg("field_name", msg, "error");
});
}
This snippet works without issue in PROD (still on Jakarta), however, it doesn't work in DEV (now on London). If I comment out either the clearValue() or showFieldMsg() calls, the script runs without issue. When I attempt to let them run together, clearValue() works maybe 10% of the time, and if it does it's only on the first onChange event after the page load.
No console errors to speak of and I don't see anything in published known errors.
Has anyone else experienced this?
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2019 02:21 AM
Hello,
This seems to be an existing issue in London Version - https://hi.service-now.com/kb_view.do?sysparm_article=KB0715247
Hope this helps!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2020 07:19 PM
One way to show some message to use g_form.addInfoMessage(); even though infomessages stay's for short time, that works with g_form.clearValue();