在CRM 2015中禁用表单上的所有字段 [英] Disabling all Fields on a Form in CRM 2015
本文介绍了在CRM 2015中禁用表单上的所有字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨我希望在使用插件或Jscript保存时禁用CRM 2015中的所有字段
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)
}
});
这篇关于在CRM 2015中禁用表单上的所有字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文