How to disable a form control in Dynamics CRM 2011 using Javascript

To disable a form control in Dynamics CRM 2011 using Javascript try below code:

var control = Xrm.Page.ui.controls.get("fieldname");// like new_age
control.setDisabled(true);
This entry was posted in MS CRM 2011 and tagged , , . Bookmark the permalink.

One Response to How to disable a form control in Dynamics CRM 2011 using Javascript

  1. harry singh says:

    nice post ,looking forward for posts like this .

    Dynamics CRM Developers

Leave a Reply

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