MS CRM - Disable and Enable A Field Using Java Script In Microsoft Dynamics

Brief: Suppose you would like to enable or disable a field on a Dynamics CRM 2011 Form using Java Script.

Disable a field
Xrm.Page.ui.controls.get("CrmFieldShcemaName").setDisabled(true);

Enable a field
Xrm.Page.ui.controls.get("CrmFieldShcemaName").setDisabled(false);

Leave a Reply

Your email address will not be published. Required fields are marked *