Sometimes, you don’t want the New button to be available for creating new records from a lookup or subgrid’s lookup: In order to hide the standard New button on a lookup, use the following function (works on both CRM 2013 and CRM 2015): function RemoveNewButtonFromLookUp(lookupName) { if(lookupName) { var lookUpControl = Xrm.Page.getControl(lookupName); if(lookUpControl) { lookUpControl.addPreSearch(function… Continue reading Hide New Button on Lookups and Subgrids – CRM 2013 & 2015
Tag: lookup
Filtering Relationships in CRM (N:1 & N:N)
Hello guys, Long time no see. Hope you will find this brief post useful. To add custom filters to a N:1 relationship (lookup) in Microsoft Dynamics CRM (2011 and above), please read this post. To filter a N:N relationship (many to many), please read this post (for CRM 2013) or this post (for CRM 2011).… Continue reading Filtering Relationships in CRM (N:1 & N:N)