O'Reilly logo

Microsoft Dynamics CRM 2013 Unleashed by Marc Wolenik

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Event-Handling Tips and Tricks

Since the release of CRM 2011 Rollup 12 in December 2012, CRM releases are multibrowser supported. You can run Dynamics CRM in any browser, including Internet Explorer, Firefox, Chrome, and Safari. We used to be able to easily access the DOM in our JavaScripts. This is not recommended now because these scripts might work on one browser and not on another. As a result, you should not try to access DOM objects in your scripts.

Instead, you can attach functions to the onChange event or field through form customization, or you can simply do the same by using the addOnChange method, as shown in Listing 21.3.

Suppose that you have a custom entity called House to which you have added the following custom fields: Width, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required