Trigger on change event of field with JavaScript – Dynamics CRM

In order to call a JavaScript method that was attached to the On Change event of a field, I had to investigate how an On Change event can be called without doing an update of the field that has the On Change method attached to it. Find below a way to do this:

Xrm.Page.getAttribute("FieldName").fireOnChange();

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s