About Microsoft Dynamics CRM Customization & Configuration, System & Custom, codes & configure , tips & tricks and much more to explore..!
Wednesday, 18 May 2016
Javascript Disable all controls on a form
How to Disable all controls on a form
function DisableAllcontrols() { Xrm.Page.data.entity.attributes.forEach(function (attribute, index) { var control = Xrm.Page.getControl(attribute.getName()); if (control) { control.setDisabled(true) } } ); }
No comments:
Post a Comment