Tokyo - g_form.showFieldMsg not working

triciav
Kilo Sage

Tokyo: I am testing in dev and my instance is on Tokyo.

I have an onLoad catalog script to show 2 field messages.

This is not working both in the UI and Portal

function onLoad() {
   //Type appropriate comment here, and begin script below
    g_form.showFieldMsg('users', "Add any other users that will use this data.", "error",true);
    g_form.showFieldMsg('geo_department', "Add any other departments that will use this data.", "error",true);
}
9 REPLIES 9

Thanks, haha.

I would hope it wasn't just working for me as a one off.


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

triciav
Kilo Sage

strange wonder why mine is not working

Thank you all for confirming

Did you try clearing value of the field?


***Mark Correct or Helpful if it helps.***

Rahul RJ
Giga Sage
Giga Sage

Hi,

you can try this

g_form.setValue('users','');
g_form.setValue('geo_department','');
g_form.showFieldMsg('users', "Add any other users that will use this data.", "error",true);
    g_form.showFieldMsg('geo_department', "Add any other departments that will use this data.", "error",true);

Regards,

RJ

 

Alejandro4
Tera Contributor

Hi there!
I also have a problem with functions getMessage on Portal, I don't know if is the same as yours. The first time that the message must be displayed, the message is displayed but is not trasnlated. The following times the message is displayed correctly. If you have the same problem, you can check on the console message (in the developer tools) and check this message: 
 (key="your message"): synchronous use not supported in Mobile or Service Portal unless message is already cached.

 

This error is fixed on Utah.

 

Regards