Hello,
I have the below scenario;
I have a picklist (schema - cvs_companyorsite) and when I create a record in the account entity I want this to have write access, however when loading records (onload) in the accounts entity I want this field to be disabled. I have the below jscript is setup
and configured through the event handlers, which works when loading records (onload), but when I create new records the field is disabled. Can anyone provide me with the code to enable the field to be updated when a form is created, and when the form is being
loaded?
function SetEnabledState()
{
var AddressType = Xrm.Page.ui.controls.get("cvs_companyorsite");
AddressType.setDisabled(true);
}
Many Thanks
Sam