Good afternoon -
I am receiving an error "Unable to get property 'substr' of undefined or null reference" from one of my JavaScript functions built into the Opportunities entity in my DEV environment. The function is set up to run OnSave.
There have been no added fields to the form that I can chalk up to causing this issue. The same exact script is currently active in my PROD environment with no issues.
I am very familiar with the setup and underlyings of the system, but have zero experience with JavaScript. The piece was written by a third party during roll out of the system. Would anyone be able to explain in simplistic terms what is causing this error? Below is the exact script that is causing the issue.
Thanks!
function SalesStageCodingUpdate() { var step = Xrm.Page.getAttribute("stepname").getValue(); var Currentvalue = step.substr(3); Xrm.Page.getAttribute("si_newstepname").setValue(Currentvalue); }
*This post is locked for comments