We used javascript to make all fields read only in the MS CRM Forms. We bind the script and on Form "
onload event". After "
save&Publish" the form.
function disableAllFields()
{
debugger;
Xrm.Page.ui.controls.forEach(function (control, i) {
if (control && control.getDisabled && !control.getDisabled()) {
control.setDisabled(true);
alert("Hi");
}
});
}
we displayed all read only fields in the form
No comments:
Post a Comment