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