POp-up message

Vaishali 11
Tera Guru

I have a requirement where when after the case is created and then the assigned to is assigned or is changed then there should be a message or a pop-up to change the service, category & sub-category if needed. How can this be done?

 

 

Thanks in advance!!

1 ACCEPTED SOLUTION

Vaishali 11
Tera Guru

I have created an on change client script like below and it worked.


function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
var assignmentgroup = g_form.getValue('assignment_group');
if (assignmentgroup == 'sys_id of the group') {
g_form.showErrorBox('field_name', 'message');

}

View solution in original post

12 REPLIES 12

Hi @Ankur Bawiskar I tried Juhi's script but it doesn't seem to work

@Vaishali 11

I already told it's an easy requirement.

Unless you start from your side you won't learn.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Vaishali 11
Tera Guru

I have created an on change client script like below and it worked.


function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
var assignmentgroup = g_form.getValue('assignment_group');
if (assignmentgroup == 'sys_id of the group') {
g_form.showErrorBox('field_name', 'message');

}