hi,
please see the following post.
https://social.microsoft.com/Forums/partner/hu-HU/3b97a306-4df7-4128-a3a9-e516c46c565d/limit-customer-lookup-in-opportunity-to-accounts-only?forum=crmdevelopment
regards
Jithesh
function HideAccount() { document.getElementById("customerid_i").setAttribute("lookuptypes", "2"); }
Use below code in Form Load function HideAccount() { document.getElementById("customerid_i").setAttribute("lookuptypes", "1"); }
function HideAccount() { document.getElementById("customerid_i").setAttribute("lookuptypes", "1"); }
Dynamics CRM MVP/ Technical Evangelist at SlickData LLC My blog