This question already has an answer here:
- setDisable for all fields of a Section in a Crm Form 4 answers
hi I want Disable all fields on a frorm in CRM 2015 on save using plugin or Jscript
This question already has an answer here:
hi I want Disable all fields on a frorm in CRM 2015 on save using plugin or Jscript
Xrm.Page.data.entity.attributes.forEach(function (attribute, index) {
var control = Xrm.Page.getControl(attribute.getName());
if (control) {
control.setDisabled(true)
}
});