How To Identify Header Section In Crm Form?
Is there a way to tell if the section is a header in CRM Form? We're on Microsoft Dynamics CRM 2016 and I have a requirement to disable all fields on the Contact form when a certai
Solution 1:
Basically every field in the form has to be in a section except header. So this is helpful in this case as we have to identify the fields in header & disable it.
I have used forEach iterator to check each control and if that control does not have a Parent which is a section - then its a control in header, so disable the control.
Xrm.Page.ui.controls.forEach(function (control) {
if(!control.getParent()){
control.setDisabled(true);
}
});
Reference: getParent
Post a Comment for "How To Identify Header Section In Crm Form?"