【发布时间】:2015-01-27 11:20:58
【问题描述】:
您好,我想在使用插件或 Jscript 保存时禁用 CRM 2015 中的所有字段
【问题讨论】:
-
被列为重复的问题不是。在 CRM 中禁用表单上的所有字段不同于表单上某个部分的所有字段
标签: javascript c# crm
您好,我想在使用插件或 Jscript 保存时禁用 CRM 2015 中的所有字段
【问题讨论】:
标签: javascript c# crm
Xrm.Page.data.entity.attributes.forEach(function (attribute, index) {
var control = Xrm.Page.getControl(attribute.getName());
if (control) {
control.setDisabled(true)
}
});
【讨论】: