When I create an order and click the Customer lookup, I want only Accounts to appear as an option. I have tried the script below but it messes up the Search function of the Customer lookup. Is there a way I can change the script or another way to restrict the Customer lookup under Order to Accounts only?
The script below is the Onload Event of the Order entity.
crmForm.customerid.lookuptypes = 1;