Friday 8 May 2015

The JavaScript code with JQuery stopped working after SP update - Uncaught TypeError: Cannot set property 'onchange' of null

After installation of SP update, we noticed that the JavaScript code with JQuery stopped working.

 Looking at the Developer tools, here is the error: Uncaught TypeError: Cannot set property 'onchange' of null





We have found this link which helped uo to fix the issue


It was because, If you have a required field  in your SharePoint list and you make a reference to the form control in the EditForm.aspx page. You will get a javascript ‘null’  error stating that the script is unable to find the value.
 Solution:
  1. Get a list of all required fields in your list.
  2. Edit your JavaScript code and  find the fields 
  3. In your JavaScript code, change the Column name(s)  to ‘CoumnName Required Field’.




Hope it helps

Kate

No comments:

Post a Comment