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

Scotty88
Tera Contributor

.

10 REPLIES 10

Astik Thombare
Tera Sage

Hi @Scotty88 ,

 

You can write onchange client script on additional comments field

 

Code -

 

 

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

    var acc = g_form.getValue('account');

    if (acc == 'dc5dd0843bc02300bfe04d72f3efc41e') { /// sys_id of specific account 'ABC'
        alert('Comment has been added to the case');
    }

 

 

 

 

 This is working fine. But one thing to note that even if you put one letter in additional comments, it will give pop up

 

If my reply helped with your issue please mark helpful 👍 and correct ✔️ if your issue is resolved.

 

                         By doing so you help other community members find resolved questions which may relate to an issue they're having

 

 

Thanks,

 

Astik

.

Scotty88
Tera Contributor

.

@Scotty88 To avoid sys id you can use gs.getproperty(sys_prpertyname) and you can use AFTER-UPDATE business rule then in condition section of BR you have to add "comment is updated.