Catalog Client Script issue with clearValue() and showFieldMsg() in London

Matthew Glenn
Kilo Sage

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?

6 REPLIES 6

rad2
Mega Sage

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!

Anvesha
Tera Contributor

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();