Hello,
I added this code to a form on crm online 2016 wave 1:
function disableViewPicker () {
var lookup = Xrm.Page.getControl("lookup_WorkTags");
if (lookup) {
var id = "{E57F5DE2-7764-E611-80DD-C4346BAC0E68}";
var defaultView = lookup.getDefaultView();
if (defaultView != id) { lookup.setDefaultView(id); }
lookup.SetParameter("disableViewPicker", "1");
}
setTimeout( function () { disableViewPicker(); } , 1000);
}
I want to set the default view and disable the viewpicker. First works , second not. Does anyone have an idea to make that happen. MS supported...;-).? BTW I also tried to use the GUI to configure this. No success....
Frank
*This post is locked for comments
I am looking for the same, a solution to disable the view picker (CRM 2016 on premise). I could not get code like above to work either. What has worked for me for now is the answer in this thread: community.dynamics.com/.../190153
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156