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);
}
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);
}
}
}