In CRM 2011 it’s not recommended to have unsupported customizations. But at times there is no way out of that.
Here are some unsupported customizations that I found useful.
-
If you want to disable the View Picker or say you don’t want users to select any other view in lookup
Â
Â
document.getElementById(“customerid”).setAttribute(“disableViewPicker“, “1″);
Â
-
To Hide search box from options
Â
document.getElementById(“customerid”).setAttribute(“disableQuickFind“, “1″);Â
Â
Â
-
Hide Complete Lookup Browser (Hilighted Part)
Â
document.getElementById(“customerid”).setAttribute(“_lookupbrowse“, “1″);Â
Â
-
Hide New Button on Lookup Form
Â
Â
document.getElementById(“customerid”)._behaviours[0].AddParam(“ShowNewButton“,0);
Â
- Changing Default lookup type in “Look for: ” drop down (Here setting to Contact “entity type code = 2” instead of Account)
document.getElementById(“customerid”).setAttribute(“defaulttype“, “2”);
-
Setting particular lookup type in “Look for: ” drop down (Here setting to Contact “entity type code = 2”)
Â
document.getElementById(“parentcustomerid”).setAttribute(“lookuptypes“, “2”);
Â
-
Setting Lookup Type Name
document.getElementById(“parentcustomerid”).setAttribute(“lookuptypenames“, “contact:2”);Â
-
Setting Icon to be displayed in Lookup box (after selecting)
document.getElementById(“parentcustomerid”).setAttribute(“lookuptypeIcons“, “/_imgs/ico_16_2.gif”);