Form scripting allows us to perform a variety of actions such as enforcing custom field validation and automation and displaying values for calculated fields within a form in the Microsoft Dynamics CRM 2011 system. Most of the time, performing actions on data that is available on the client side offers better performance than using methods, which require data to be saved by the user, and then performing actions on the web server.
Dynamics CRM 2011 forms support scripts written using JScript and can be associated with the following two form events:
OnLoad
: This event is triggered when the form is loaded. This event is usually used to initialize the form for use.OnSave
: This event is triggered when a user tries to save the form data. This event is usually used for data validation. Scripts associated with this event can cancel the save before it is sent back to the server.
Additionally, each field in a Dynamics CRM 2011 form provides access to the OnChange...