I've been looking through the net but can't find a proper answer...
I wrote a plugin in C# and when a condition is met, I would like to set a field readonly...
Thanks in advance !
I've been looking through the net but can't find a proper answer...
I wrote a plugin in C# and when a condition is met, I would like to set a field readonly...
Thanks in advance !
I think the problem you are running into is that you cant modify a field's enabled/disabled from the plugin.
You can, however, access the fields from javascript:
Xrm.Page.getControl('yourfieldname').setDisabled(true);
Here is info on how to setup the javascript for your forms: microsoft's form programming reference