Welcome to MSDN Blogs Sign in | Join | Help

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

Published Wednesday, April 30, 2008 8:30 PM by Ben Vollmer
Filed under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Microsoft news and tips » Field Events: FireOnChange

Wednesday, April 30, 2008 9:35 PM by Microsoft news and tips » Field Events: FireOnChange

# re: Field Events: FireOnChange

For some reason the FireOnChange doesn't always work in CRM 4.0 (it seems in onload form events).

I have found that in this case you can use:

YourFieldID_onchange0();

do not put in the "crmForm.all."

Not sure why, but hopefully this tip will save someone some frustration.

Thursday, May 01, 2008 1:10 PM by Nick Doelman

Leave a Comment

(required) 
required 
(required) 
 
Page view tracker