Hi,
I dont think that there is such a method in Xrm Library. You can use the below function with passing true parameter
function formdisable(disablestatus)
{
var allAttributes = Xrm.Page.data.entity.attributes.get();
for (var i in allAttributes) {
var myattribute = Xrm.Page.data.entity.attributes.get(allAttributes[i].getName());
var myname = myattribute.getName();
Xrm.Page.getControl(myname).setDisabled(disablestatus);
}
}
If you find this post helpful then please Vote as Helpful and Mark As Answer. Thanks and Regards, Polat Aydın
My blog