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

Java Script Update Nedded 2011 - 2015?

$
0
0

Hello,

We recently moved our CRM online from a 2011 hostes service. It seems now that some of the Javascript governing Opportunity forms needs to be updated. There seems to be a probolem with the field 'Stand Number' as on creating a new opportunity, I see a script error: 'defaultStandNumber’ is undefined onLoad’.

It's especially odd as this field is just a text field and shouldn't have a default value. I'd be grateful for any help. Here is that portion of the code and the only place that field name is referenced:

// ******
// START OnLoad Events


function onLoad( )
{

  // Programmer: TCRMB, <Arjun>
  // Purpose: default on load script based on Form Type
    
  var CRM_FORM_Undefined_Form = 0;
  var CRM_FORM_Create_Form = 1;
  var CRM_FORM_Update_Form = 2;
  var CRM_FORM_Read_Only_Form = 3;
  var CRM_FORM_Disabled_Form = 4;
  var CRM_FORM_Quick_Create_Form = 5;
  var CRM_FORM_Bulk_Edit_Form = 6;
  var FormType = Xrm.Page.ui.getFormType();
    
  switch( FormType )
  {
  case CRM_FORM_Undefined_Form:
    break;
  case CRM_FORM_Create_Form:
   defaultStandNumber();
   hideBasedOnOpportunityType();
   checkEvent();
   hideBasedOnStage();
   break;
   hideBasedOnOpportunityType();  
   hideBasedOnStage();
    break;
  case CRM_FORM_Read_Only_Form:
    break;
  case CRM_FORM_Disabled_Form:
    break;
  case CRM_FORM_Quick_Create_Form:
    break;
  } // END FormType

} // END onLoad
// END OnLoad Events


//*******************


 


Viewing all articles
Browse latest Browse all 55831

Trending Articles



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