Hi there,
I am wrecking my head trying to update some of my previous CRM 2011 scripts to work with CRM 2013 but so far I've been out of luck.
I have one script in CRM 2011 that disables the view selector of a lookup. This is how the code used to be in CRM 2011:
document.getElementById("Lookup Id").disableViewPicker = 1;
The above JScript returns an error in CRM 2013. Then I came across this post
here, which indicates that I should update my script as follows:
document.getElementById("Lookup Id")._behaviors[0].AddParam(“DisableViewPicker”, "1");
document.getElementById("Lookup Id")._behaviors[0].set_showProperty(1);
The JScript above doesn't return any errors. However it doesn't give me the desired result either. In fact, I don't think it does anything at all.
I am at a loss here. Could someone please advise?
Thanks for the help.
Regards,
P.