Hi Andrew,
The solution you provided seems good since it could not display Contact records. I came up with the solution with some modifications:
function defaultcustomer(){
Xrm.Page.getControl("customerid").addPreSearch(addFilter);
}
function addFilter()
{
var customerAccountFilter = "<filter type='and'><condition attribute='contactid' operator='null' /></filter>";
Xrm.Page.getControl("customerid").addCustomFilter(customerAccountFilter, "contact");
}
If there is a way that it can hide the Contact from the dropdown list, it would be much better.
Thanks,
Jerome