CRM 2011 Set Owner Field or ownerid to readonly or disabled


If u set the owner field to readonly using form layout, for sure it wont work.


The way that im using is to call javascript function during onload.

Xrm.Page.ui.controls.get("ownerid").setDisabled(true);
//setDisabled is boolen value

It work with the javascript function.

0 comments: