Understanding client-side events

Microsoft Dynamics CRM 2015 exposes events for forms, fields, and other controls. These are the event handlers where we can call our custom JavaScript methods. We can configure our client-side code to execute on specific events or dynamically associate our method to a corresponding event. Let's first understand events related to forms.

Form events

Two events—OnLoad and OnSave—are exposed for entity forms where we can write our client-side code.

OnLoad event

The OnLoad event handler executes code when the entity form is loaded. We can utilize this event for controlling the behavior of entity forms and this event is useful for different scenarios. For example, we may want to hide/disable some fields based on other fields ...

Get Microsoft Dynamics CRM 2015 Application Design now with O’Reilly online learning.

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