Search code examples
dynamics-crmdynamics-crm-2016

How to set custom view as the only view of a lookup?


I have lookup field that is filled with custom view (using js) and I need that custom view to be the only view of that lookup field, how do I do that?


Solution

  • There are couple of tweaks you have to do to achieve it, like explained in this blog.

    1. You have to unselect all other unwanted views in lookup control properties except one default view
    2. Some code change while setting the custom view filter to default view too

    enter image description here