Change Request Variable True

MK21
Tera Contributor

Hi All,

 

I have a requirement in Change Request form, in the category field below are the choices, when we select the below choices , another varible called CMDB checkbox, automatically it needs to checked , how to acheive this 

 

Decommission - Application
Decommission - Application & Server
Decommission - In Build or Non operational CI 
Decommission Server
System / OS upgrade
Tech Refresh / Server Migration
Project go-live

1 ACCEPTED SOLUTION

SunilKumar_P
Giga Sage

Hi @MK21, you can also try the onChange client script on category field.

 

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

    if (newValue == 'Decommission - Application' || newValue == 'Decommission - In Build or Non operational CI' || newValue == 'Decommission Server' || newValue == 'System / OS upgrade' || newValue == 'Tech Refresh / Server Migration' || newValue == 'Project go-live') {
        g_form.setValue('cmdb', true);
    } else {
        g_form.setValue('cmdb', false);
    }

}

 

Regards,
Sunil

View solution in original post

12 REPLIES 12

MK21
Tera Contributor

created like this 

 

MK21_0-1707747062988.pngMK21_1-1707747085847.png

but when i selected other choices variable is not unchecked, can you please tell me how to get with UI policies

Change the "Run Script UI Type" to "ALL".

This should resolve it.

MK21
Tera Contributor

I tried no LUCK 

MK21_0-1707747874587.png

i selected mentioned Choces it was true after changing the different choice it was not unchecked