We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Pop up messages when updating case "Comments" or "Closure Notes"

Scotty88
Tera Contributor

.

10 REPLIES 10

Hi @Scotty88  ,

 

You can keep any scope either ' global ' or 'Customer Service ' . But as case table is in 'Customer Service ' Scope . So create Client Script in 'Customer Service '  Scope . i have modify the code and it is also working fine . please check below screenshots  and script -

 

 

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

  var acc = g_form.getDisplayBox('account').value.trim();
  
if (acc == 'Advanced Super Routing') {
    alert('Comments has been updated');
  }
}

 

 

 

AstikThombare_0-1714540817008.png

 

Please Mark Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact

 

Thanks,

Astik