using g_form.showfieldmsg on service portal is not working

jatinder1
Tera Expert

using g_form.showfieldmsg on service portal is not working

19 REPLIES 19

jatinder1
Tera Expert

Thanks guys.. it's working but i have another issue..

My client script is running on change of a field. So, whenever i am changing the value, m getting the messages queued one after other. They are not getting cleared.

can you post the complete client script here? 

jatinder1
Tera Expert

function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}

if(newValue){
var temprec = g_form.getReference('template', popRecInfo);
}

function popRecInfo(temprec){

g_form.showFieldMsg('template',temprec.u_quick_template_internal_notes,'info',true);

}

}

 

 

NOTE : It is running on change of a reference field

can you try now. also let us know how many times it show the alert 

 

function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}

if(newValue){
var temprec = g_form.getReference('template', popRecInfo);
}

}

function popRecInfo(temprec){


alert('How many times it shows the alert');


g_form.showFieldMsg('template',temprec.u_quick_template_internal_notes,'info',true);

}


jatinder1
Tera Expert

Every time changing the ref field.