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);
If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.
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 *