using g_form.showfieldmsg on service portal is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2019 08:10 AM
using g_form.showfieldmsg on service portal is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2019 09:08 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2019 09:10 AM
can you post the complete client script here?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2019 09:26 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2019 09:29 AM
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);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2019 09:48 AM
Every time changing the ref field.