OnChange Event Handler functions don't exist in Quick Campaign wizard RRS feed

  • Question

  • We have event handlers tied to the OnChange event for a number of fields in the appointment, email, fax, letter and phonecall entities.  When filling out the selected Activity form from within the Quick Campaign wizard we are getting a js error indicating the associated event handler function does not exists.  We tried wrapping the call to the function in the standard "if ( [functionname] ){ [functionname](); }" test but that doesn't fix the problem.  Has anyone else experienced this problem?
    Thursday, December 31, 2009 8:10 PM


All replies

  • Quick Campaign is not a normail CRM entity. In system is called Bulk Operation see here SDK reference: http://msdn.microsoft.com/en-us/library/bb889020.aspx
    Quick Campaign have only wizard not a form so you'r not have On.. Javascript methods. If you would like to customize it you'll need to do via plugin.

    My Dynamics CRM Blog: http://bovoweb.blogspot.com
    Friday, January 1, 2010 2:42 AM
  • Ok...let me try this again.  On the appointment, email, fax, letter and phonecall activity forms we've wired up code (functions) to the On... javascript Events.  The event handlers (functions) work fine during "normal" use (i.e. creating, updating the entities).  However, these same forms are used as part of the Quick Campaign wizard, BUT the event handlers (functions) are not loaded.  Therefore, when the field(s) associated with these functions are edited a javascript error is raised indicating the function does not exist.  That is because the js code is not being loaded into the browser, but the events are still attempting to call those functions.  When I examine the js code that CRM is generating it is attempting to evaluate the existance of these functions.  However that logic is somehow failing and the function is still getting called.

    The evalation is being done is the standard js eval statement:

    if( myfunction ){

    This check is failing to detect the existance of myfunction is this example and is attempting to execute myfunction which is what is causing the error.  I'd attach a screen shot of the error but I cannot.

    Wednesday, January 6, 2010 10:29 PM