Hi, I am getting a strange error "Unable to get property 'getValue' of undefined or null reference". I even remove all the scripts from the Form and no script attach in ribbon as well. Cache is cleared.
*This post is locked for comments

Hi, I am getting a strange error "Unable to get property 'getValue' of undefined or null reference". I even remove all the scripts from the Form and no script attach in ribbon as well. Cache is cleared.
*This post is locked for comments
Hi Sohail,
Make sure your field is not a typeof Lookup.
Also check whether you have entered valid attribute name as
Xrm.Page.getAttribute("prefix_name");
Also remember
getValue is a method, so the right way is getValue()
Xrm.Page.getAttribute("prefix_name").getValue();
Do you have any javascript running on a form?
if you have removed the javascript from a form then you need to save and publish those changes
Thanks Guido, But debugger is not working... Also I think FormLoad Event not getting trigger as well. I put the debugger on change of field it works but On load function is not getting called as this error comes first.
Hi Ben, I remove all the script and for sure I save and Publish but form still getting this issue. I check this on other System as well. On Load script not getting called but if i put script on Change field it works.
Thanks
What version of CRM are you using?
Ben 2013 on Prem, There was some script on field before. So I remove the field and also remove the script from there. But now it causing this issue.
Have you removed the form onload event
Yes :) . do you think it caching something about onload event? because onload event it not getting call even.