In CRM 2011 it’s not recommended to have unsupported customizations. But at times there is no way out of that.

Here are some unsupported customizations that I found useful.

  1. If you want to disable the View Picker or say you don’t want users to select any other view in lookup

     

     

    document.getElementById(“customerid”).setAttribute(“disableViewPicker“, “1″);

     

  2. To Hide search box from options

     

    document.getElementById(“customerid”).setAttribute(“disableQuickFind“, “1″); 

     

     

  3. Hide Complete Lookup Browser (Hilighted Part)


     

    document.getElementById(“customerid”).setAttribute(“_lookupbrowse“, “1″); 

     

  4. Hide New Button on Lookup Form

     

     

    document.getElementById(“customerid”)._behaviours[0].AddParam(“ShowNewButton“,0);

     

  5. Changing Default lookup type in “Look for: ” drop down (Here setting to Contact “entity type code = 2” instead of Account)

document.getElementById(“customerid”).setAttribute(“defaulttype“, “2”);

  1. Setting particular lookup type in “Look for: ” drop down (Here setting to Contact “entity type code = 2”)

     

    document.getElementById(“parentcustomerid”).setAttribute(“lookuptypes“, “2”);

     

  2. Setting Lookup Type Name


    document.getElementById(“parentcustomerid”).setAttribute(“lookuptypenames“, “contact:2”);

     

  3. Setting Icon to be displayed in Lookup box (after selecting)


    document.getElementById(“parentcustomerid”).setAttribute(“lookuptypeIcons“, “/_imgs/ico_16_2.gif”);

Leave a comment

I’m Abhinav

Welcome to my Blog. I am a passionate architect and developer dedicated to creating innovative and user-friendly digital experiences. With a background in both design and development, I bring a unique blend of creativity and technical expertise to every project I undertake.

In addition to my technical skills, I have a keen interest in the latest industry trends and enjoy sharing my knowledge through blogging and speaking engagements. When I’m not coding or designing, you can find me exploring new technologies, reading about the latest in tech, or indulging in my love for music and travel.

Let’s connect