Traditionally we use the following way to lock or unlock the fields programmatically,
Xrm.Page.getControl(fieldname).setDisabled(true/false);
But there could be some cases where we would need to lock...(read more)
↧