Friday, November 18, 2011

emable Disable a filed in ms crm 2011

just get the attribute and call the "setDisabled()" function.

guys do not use unsupported methids if the supported way is there.

example

        Xrm.Page.ui.controls.get("<attribute_name>").setDisabled(true);//will disable the field
        Xrm.Page.ui.controls.get("<attribute_name>").setDisabled(false);// will enable the field

yes.sudhanshu

No comments:

Post a Comment