Hey folks,
I hope this makes sense (since this is just outside my skill set).
When we create a new Account record via an Account Subgrid/View on the Contact form... we have some script that was dealing with clearing a field (new_contactrefferid) on the Account quick create form which was being automatically populated(cascaded?) with the Contact record.
Here is the script:
"if (Xrm.Page.ui.getFormType()==1)
{
Xrm.Page.getControl('new_contactreffererid').getAttribute().setValue(null);
}"
It was working nicely until CRM Online 2015 Update 1.
Here is the error that appears (Chrome):
“Script Error
One of the scripts for this record has caused an error. For more details, download the log file.
TypeError: Cannot read property 'Initialize' of undefined at eval (eval at RunHandlerInternal (thl.crm5.dynamics.com/.../ClientApiWrapper.aspx:142:32), <anonymous>:1:26”
And here is it's log file (Chrome):
“TypeError: Cannot read property 'Initialize' of undefined
at eval (eval at RunHandlerInternal (thl.crm5.dynamics.com/.../ClientApiWrapper.aspx:142:32), <anonymous>:1:26)
at RunHandlerInternal (thl.crm5.dynamics.com/.../ClientApiWrapper.aspx:142:1)
at RunHandlers (thl.crm5.dynamics.com/.../ClientApiWrapper.aspx:101:105)
at OnScriptTagLoaded (thl.crm5.dynamics.com/.../ClientApiWrapper.aspx:215:1)
at thl.crm5.dynamics.com/.../ClientApiWrapper.aspx:186:1”
N.B Same error occurs if we use Explorer.
Any suggestions to getting this working again are much appreciated.
Thanks