$ 0 0 Hi,you don't need to write javascript code, with crm 2011 lookup filtering is a built-in functionality.you need to set the field properties as this figure: