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.
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.