Hi..I am using dynamics 365 crm online . Below code is not working when I am trying to disable a section onchange of a field.
(Note : There is a HTML webresource in the section.That webreource is a button)
var ctrlName = Xrm.Page.ui.controls.get();
for (var i in ctrlName) {
var ctrl = ctrlName[i];
var ctrlSection = ctrl.getParent().getName();
if (ctrlSection == "tab_3_section_2") {
ctrl.setDisabled(true);
}
}
Can some one please help me on this ? Thanks in advance !!
*This post is locked for comments