Good day,
I have fields blocked by default in the form of account. I used the code below to clear the fields so that they can be saved in the OnSave event that only the code for the MSCRM 2015 does not work, anyone have any idea what can be?
readFields function (Context)
{
if (Xrm.Page.data.entity.getIsDirty () == true)
{
var controls Xrm.Page.ui.controls.get = ();
for (var i in controls)
{
var controls control = [i];
if (control.getDisabled ())
{
control.setDisabled (false);
}
}
Context.getEventArgs (). IsDefaultPrevented ()
}
}
Thank you