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, ...
Get Microsoft Dynamics CRM 2013 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.