Below is my script, the field is populating correctly when the form loads, however I also get the script error: Unable to get property 'Initialize' of undefined or null reference at eval code. I am not sure why I am getting this and F12 debugger doesn't show any errors. Any ideas?
function setJSonDate()
{
var currentYear = (new Date()).getFullYear();
var sept1st = new Date(currentYear, 8, 1);
Xrm.Page.getAttribute("nhs_jsondatefield").setValue(sept1st);
}
*This post is locked for comments