RE: Hide option set values
Hi Guido,
It is called on load of lead record. Below is my complete code. Unfortunately i am still able to see the value.
function hidevalues(){
debugger;
Xrm.Page.getControl("new_leadtype").removeOption(100000003);
Xrm.Page.getControl("new_leadtype").removeOption(100000002);
Xrm.Page.getControl("new_leadtype").removeOption(100000005);
Xrm.Page.getControl("new_leadtype").removeOption(100000022);
Xrm.Page.getControl("new_leadtype").removeOption(100000017);
Xrm.Page.getControl("new_leadtype").removeOption(100000021);
Xrm.Page.getControl("new_leadtype").removeOption(100000023);
Xrm.Page.getControl("new_leadtype").removeOption(100000009);
Xrm.Page.getControl("new_leadtype").removeOption(100000019);
Xrm.Page.getControl("new_leadtype").removeOption(100000006);
Xrm.Page.getControl("new_leadtype").removeOption(100000001);
Xrm.Page.getControl("new_leadtype").removeOption(100000015);
}