g_form.showFieldMsg not working

alex_tan
Kilo Contributor

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!

28 REPLIES 28

worked for me as well

Hi, it really works, but do you know why clearing the value BEFORE showing the message actually works?

 

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.

Inactive_Us1957
Kilo Guru

Hi,

Use this g_form.showErrorBox('field name','message',true).

Hope this will work.

Service_RNow
Mega Sage

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,