First things first, my MFH-Location dropdown has about 50 options for location, so based on that result, i need to populate the UDF_CHAR4 field with the appropriate room numbers. If i have to manage the room numbers via JS then so be it, but i'd rather manage the MFH-Location options in the "Incident - additional fields" page.
So how can I wire up an empty picklist to populate only with the appropriate room numbers based on the current MFH-Location value.
Here is the code im executing. (the alert box was just there for debugging, making sure the if statement ran)
The $CS.addOptions command did not add the array of options in the 2nd half of the argument.
if ($CS.getValue("WorkOrder_Fields_UDF_CHAR1") === "Fillmore - Building 1") {
//alert("this is true");
$CS.addOptions("WorkOrder_Fields_UDF_CHAR4",["Room 1", "Room 2", "Room 3"]);
}