JavaScript Events

JavaScript events are related to forms and the controls inside the forms only. Each form has OnLoad and OnSave events, which can accept JavaScript. Each field also has the OnChange event, which can also accept JavaScript. You can also add events for the Tab control to track the TabStateChange event and to IFRAMEs to track the OnReadyStateComplete event (see Figure 21.36). The previous version, CRM 2011, used to support the crmForm.all object collection, but this is not supported in CRM 2013 anymore; the Xrm.Page object collection is to be used for CRM 2013 JavaScript customizations.

Image

FIGURE 21.36 Form events that you can customize ...

Get Microsoft Dynamics CRM 2013 Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.