Hi, we have been recently updated to dynamics online CRM 2013 Fall and below js form onload property
function DisableSectionAttributes() { function setFldDisabled(ctrl) { ctrl.setDisabled(true); } function setFldEnabled(ctrl) { ctrl.setDisabled(false); } var toggleSectionFlds = Xrm.Page.getAttribute('new_billable').getValue(); var ctrlName = Xrm.Page.ui.controls.get(); for (var i in ctrlName) { var ctrl = ctrlName[i]; var ctrlSection = ctrl.getParent().getLabel(); if (toggleSectionFlds == false) { if (ctrlSection == "Billing") { setFldDisabled(ctrl); } } else { if (ctrlSection == "Billing") { setFldEnabled(ctrl); } } } }
The above js is throwing following error:
'Unable to get property ' get label' of undefined or null reference'.
I have verified the names and labels of all the windows on the screen. The above js was working absolutely fine for last 10 months on previous version.
Look forward to your help.
Regards
*This post is locked for comments
I have the same question (0)