Client Script

ankitaayyad
Kilo Contributor

Hi Community, 

I am trying to hide the issues related list, when status is compliant and when status is non compliant then the issues related liste should be visible.

Below is the script, please review and let me know if there is anything wrong.

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

    if (newValue == 'non_compliant') {
        g_form.showRelatedList('Issues');
    } else {
        g_form.hideRelatedList('Issues');
    }
}
0 REPLIES 0