Posts Tagged ‘dependent scripts’

Loading dependent jscript libraries in ribbon button’s execution CRM 2013

In CRM 2011, To load the dependent Jscripts on execution of ribbon button command actions

  • We can add the dependent script as a Library in the “Javascript Command” and pass “isNaN” as Function Name (Refer my existing article)

In CRM 2013, I observed a slight change in the execution w.r.t the order.

The dependent script files has to be ordered before the actual script file.

Dependent script file is not loading if the order of the file next to the actual script file.

Dependent JScripts Order

Dependent JScripts Order

In the above scenario there are 2 “Javascript Command” pointing to different web resources.

The “Javascript Command:isNaN” is my dependent script file hence I put that as 1st command.