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
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