Hi, hope someone can help me.
I've created an additional Incident field which has a list of 4 values.
I've created a test template which includes this additional field:
What I'm trying to do is set a dependancy so that the contents of this list changes depending on the choices made in the Subcategory and Item fields
I've been reading up on this, and it seems to be possible by executing a script on load.
I've set up the rule as follows:
The custom script I'm using is:
var dependencyObj= {
"FIELDS" :["SUBCATEGORY","ITEM","WorkOrder_Fields_UDF_CHAR26"],
"VALUES":{
"Centurio":{
"Advice":["Amended Settings"],
"Error message":["Reset Password"],
"Failure":["Reset Password","Reset Session"],
"Performance":["Restarted Computer"]
}
}
};
$CS.setFieldDependency(dependencyObj);
So what should happen is that if the technician picks the SubCat "Centurio" and then selects Item "Advice", they will only be able to select "Amended Settings", but if they pick Item "Error Message" they get "Reset Password" etc etc.
However, when I test this on my template, I still get all 4 list items, regardless of what I select in SubCat/Item:
I've tried whilst creating the ticket, and I've also tried saving the ticket first, and then editing this field, but it doesn't make any difference.
My own theory is that its because I haven't populated all of the possibilities (I only did one subcat because I wanted to test whether this was viable, and didn't have the time to populate everything)
Or is there something wrong with the script?