RE: Filter customerid field to show only Accounts
Hi Andrew,
Below is the code I've used (slightly altered to match our environment where the field is 'customerid' rather than 'parentcustomerid' etc):
___________________________________________________________
var oInvoiceFormCustomization = {
setCustomerLookupToShowAccount: function (execContext) {
var formContext = execContext.getFormContext();
if (formContext.getControl("customerid")) {
var account = formContext.getControl('customerid');
if (account.getEntityTypes().length > 1) {
account.setEntityTypes(['account']);
}
}
}};
____________________________________________________
The Handler Properties are below:

Many thanks,
Michael