The CreatorCon Call for Content is officially open! Get started here.

g_form.showErrorBox and showFieldMsg do not work at Service Portal

qqj5004
Kilo Contributor

Hi all

the onLoad Client Script with g_form.showErrorBox or g_form.showFieldMsg   do not work in Service Portal.

function onLoad() {

  var msg = 'check at lease one checkbox';

if(g_form.getValue("add_user", false)){

g_form.showErrorBox('right', msg);

}

}

This script work on CMS but not on Service Portal

Please Help!!!

Thank you

15 REPLIES 15

Hello Qili


I tried your script and seems to be working for me. Would you mind putting some alert statements in the script and see if the script is working. I would also suggest you to use a different browser and see if that makes any difference. PFACommunity.PNG


Community1.PNG



Please mark my response as correct and helpful if it helped solved your question.
-Thanks

Hi


I realized that g_form.showfieldmsg does not work on the label, but it works on other type of the question. Thank you.


This reply was helpful for me but also do you have any idea how to translate the g_form.showfieldmsg to different language, i am badly stuck there.

 

Thanks and Regards,

Prerana

I don't see any error in console when i this client script runs


Harish Kumar3
Mega Guru

Hi Qili,



In service portal use showFieldMsg() function with below syntax:


g_form.showFieldMsg('<variable_name>', 'msg', 'info', false);



Thanks,


Harish