The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Hide any sectiononthe incidentform when priority is critical

keval3
Tera Contributor

Hi AQll,

 

I have below requirement...

please let me know how to do it.

Hide any sectiononthe

incidentform when
priority is critical

4 REPLIES 4

Murthy Ch
Giga Sage

Hi @keval3 

Did you tried anything in your end?
If so, please post here where you stuck, happy to help

Thanks,
Murthy

Ankur Bawiskar
Tera Patron
Tera Patron

@keval3 

should be an easy task

what did you start with and where are you stuck?

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

Hi Ankur,

 

I have written below on change client script

 

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

    //Type appropriate comment here, and begin script below
    var pri = g_form.getValue("priority");
    if (priority == 'critical'); {

        g_form.hideRelatedList('Affected CIs');
    }

}