Field: Enable/Disable on Entity Form CRM 2011

Microsoft Dynamics CRM is a Customer Relationship Management software package developed by Microsoft
Post Reply
User avatar
gellee
Posts: 46
Joined: Fri Jan 20, 2012 3:04 pm

Field: Enable/Disable on Entity Form CRM 2011

Post by gellee »

Field for Enabled or Disabled

Bool- is a parameter being passed to the function with a value of either true or false

Code: Select all

function setFieldEnabled(bool) {
    Xrm.Page.getControl("leadqualitycode").setDisabled(bool);
}
All Field for Enabled or Disabled

Code: Select all

function setAllFieldEnabled(bool) {
    var controls = Xrm.Page.ui.controls.get();
    if (controls != null) {
        for (var i in controls) {
            controls[i].setDisabled(bool);
        }
    }
}
xaeresis
Posts: 196117
Joined: Wed Oct 04, 2023 2:39 pm

Re: Field: Enable/Disable on Entity Form CRM 2011

Post by xaeresis »

xaeresis
Posts: 196117
Joined: Wed Oct 04, 2023 2:39 pm

Re: Field: Enable/Disable on Entity Form CRM 2011

Post by xaeresis »

Post Reply