Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 79901

Free fields for recording onSave

$
0
0

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


Viewing all articles
Browse latest Browse all 79901

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>