Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Using shortcut keys in Microsoft Dynamics CRM 4.0 does not fire the onChange event


View products that this article applies to.

Symptoms

If a user is editing a form in Microsoft Dynamics CRM 4.0 and uses the shortcut keys (for example ctrl-s to save the record), then the OnChange event for the current field is not fired.

Therefore if the user has modified the value of the current field but not yet stepped off of it, then any custom logic in the OnChange event will not be executed.

↑ Back to the top


Cause

This is a limitation in Microsoft Dynamics CRM 4.0. The functionality of shortcut keys has been changed in Microsoft Dynamics CRM 2011 and works as expected. 

↑ Back to the top


Resolution

If it is critical to have the code in the OnChange event executed before a record is saved then this logic needs to be included in the OnSave event of the Form. The OnSave event is the only place where you can cancel the Save operation should any logic require it.

↑ Back to the top


More Information

Due to User Interface and script event changes in Dynamics CRM 2011 this behavior is different and the OnChange event does get fired when shortcut keys are used.

↑ Back to the top


Keywords: kbmbspartner, kbmbsmigrate, kbsurveynew, kb

↑ Back to the top

Article Info
Article ID : 2686242
Revision : 1
Created on : 1/7/2017
Published on : 5/4/2012
Exists online : False
Views : 290