Thursday, October 22, 2015

Dynamics CRM 2015 - Solving JQuery Issues in Microsoft Dynamics CRM Online 2015 Update 1

With Microsoft Dynamics CRM Online 2015 Update 1, form scripts run in a different scope than the jQuery instance used by the application, the call to the jQuery $.ajax method will fail with an error “$ is undefined”

















Solutions

1. Go To Setting > Administrator > System Setting > Set user legacy form rendering to "Yes"
    
2. Change your jQuery Syntax 

  
From JQuery to parent.JQuery

or

From $ to parent.$

Result !!!

9 comments:

  1. Easier, its render call 'Xrm.Internal.isTurboForm()'

    if (typeof ($) === 'undefined') { $ = parent.$; jQuery = parent.jQuery; }

    Solved! Lol

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete