javascript - 在 CRM 2015 中禁用表单上的所有字段

标签 javascript c# crm

<分区>

您好,我想在使用插件或 Jscript 保存时禁用 CRM 2015 中的表单上的所有字段

最佳答案

Xrm.Page.data.entity.attributes.forEach(function (attribute, index) {    
    var control = Xrm.Page.getControl(attribute.getName());
    if (control) {
        control.setDisabled(true)
    }
});

关于javascript - 在 CRM 2015 中禁用表单上的所有字段,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28169295/

相关文章:

javascript - AngularFire 0.82 - 如何查询非规范化数据?

JavaScript 创建表在 IE 中不起作用

c# - 我如何使用像 C# 这样的 C++ 枚举类型?

c# - 在 ASP.NET 应用程序中将身份验证 token 存储到另一个系统的位置

dll - 类型或命名空间 'Xrm' 不存在

javascript - 使用 AngularJS 访问另一个函数的变量

javascript - Jquery 强制换行

c# - C# 中的事务和 ExecuteNonQuery 错误

dynamics-crm - 使用 javascript ex : prvOverridePriceEngineQuote (not a role) 检索用户是否具有特殊权限

javascript - CRM 2011 货币字段不会更改货币符号