Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

Lead conversion to Opportunity - onload code does not run

$
0
0

I have jscript that loads a field value when the opportunity form is created (FormType ==1).  However, when using the our of box Lead Qualify function, the Opportunity code does not run.  Any ideas on why and how to fix?

function ElectricMargin_oncreate()
{
var EM = Xrm.Page.getAttribute("esui_electricmargin");
var FormType = Xrm.Page.ui.getFormType();

if(FormType == 1)
   { 
      EM.setValue(0.0015);
   }
}


Ken Compter


Viewing all articles
Browse latest Browse all 8223

Trending Articles



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