Field Events: FireOnChange

Almost two years ago, there was a tip published here about auto saving forms from a JScript OnChange event.  While poking around the SDK tonight looking for something, I found a cool nugget. You can force the OnChange event to occur for a field from the Microsoft Dynamics CRM form OnLoad event or from the OnChange event of some other field. To do this, use the FireOnChange method.

For example, you may use the following sample script:

 crmForm.all.YourFieldID.FireOnChange();
 

You should take a peek at the SDK for some cool nuggets like this. :-)

Happy Demo'ing!

Field Events: OnChange