g_form.removeOption not working on the Agent Workspace

hassaanazha
Tera Contributor
I am trying to remove and Option from the State field, the below code is working as required on the Native UI but when I switch over to the Sercurity Incident Workspace this function is not removing the Option from the state dropdown. The option that I want to remove has a value of 3 and a DisplayValue of 'Closed'.

function onLoad() {
   
  g_form.removeOption('state', 3);
}


hassaanazha_0-1743753812333.png

hassaanazha_1-1743753908131.png

 

 


5 REPLIES 5

It is marked as Global, but still its not working