Tuesday 8 May 2012

CRM 2011 ViewPicker off through JavaScript

Hi friends.......

CRM 2011 having the feature of selecting the view in the lookup field.But Some time our need is to write the custom code and to disable the 'View Selector'. But for custom lookups you can't disable the view selector initially through out of box.. If you try to do the view selector 'Off' in the form, then your custom code will not work.So only way is, to add some javascript in the custom code. Ofcourse, this is unsupported,MS should come back with answer. Meanwhile we can use this line to achieve.

document.getElementById("fieldnameid").disableViewPicker = 1;

Thanks

Happy CRMing.......

No comments:

Post a Comment