Hi
I have list of more than 50 items for disqualify reasons on Lead. Is it possible to hide some of them through Java script ?.
Hi
I have list of more than 50 items for disqualify reasons on Lead. Is it possible to hide some of them through Java script ?.
here is the screen shot. I need to hide some of the items through java script. Tried the picklist.removeoption for statuscode field but not working. Called this function from onload event of form.
var RemoveDisqualifyReasons = function () {
var pickList = Xrm.Page.getControl("statuscode");
var options = Xrm.Page.getAttribute("statuscode").getOptions();
for (var i = 0; i < options.length; i++) {
switch (options[i].value )
{
case 197770009:
pickList.removeOption(options[i].value);
break;
default:
break
}
}
}
Can you please share screen shots?
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156