Hi all,
I have very interesting puzzling issue in our environment.
I have Javascript file sc1.js with the same namespace say namespace1 and I have 1 forms namely form1
On form1 we use sc1.js
In the sc1.js there is a function called method1 which is being called on OnChange of a field.
When I debug I can see that the 'method1' is there on the form load but but once the field is changed the function disappears and we get the following error.
TypeError: Object doesn't support property or method 'method1'
at eval code (eval code:1:1)
at RunHandlerInternal (dynamics16-dev1/.../ClientApiWrapper.aspx)
at RunHandlers (dynamics16-dev1/.../ClientApiWrapper.aspx)
at ExecuteHandler (dynamics16-dev1/.../ClientApiWrapper.aspx)
at Mscrm.TurboForm.Control.CustomScriptsManager.prototype.$C7_1 (dynamics16-dev1/.../JsProvider.ashx;ids=1223231347-405283869:8908:17)
at Mscrm.TurboForm.Control.CustomScriptsManager.prototype.executeHandler (dynamics16-dev1/.../JsProvider.ashx;ids=1223231347-405283869:8854:13)
at Mscrm.TurboForm.Control.CustomScriptsManager.prototype.executeHandlerByDescriptor (dynamics16-dev1/.../JsProvider.ashx;ids=1223231347-405283869:8885:13)
at Anonymous function (dynamics16-dev1/.../JsProvider.ashx;ids=1223231347-405283869:8893:13)
at Anonymous function (dynamics16-dev1/.../global.ashx)
at Mscrm.TurboForm.Control.Data.DataAttributeBase.prototype.fireOnChange (dynamics16-dev1/.../JsProvider.ashx;ids=1223231347-405283869:16728:13)
Not sure exactly whats happening and why the function is not being fired onChange? Please let me know if you need any more information.
I logged in as System Admin and my environment is CRM 2016 SP1.
Thank you in advance for your help.
Regards,
Dan.
*This post is locked for comments