locked
OnChange event for one field to trigger a different OnChange event for another field RRS feed

  • Question

  • I have code in an attribute (call it field1) that updates several other attributes on the form that have OnChange events as well.

    It seems that when the initial attribute (field1) is updated, the other OnChange events for the other fields is not running.  How do I get those to run after field1 OnChange has run?

    Thanks!!

    Eddi Rae

    Monday, July 26, 2010 7:35 PM

Answers

  • The CRM JS object model exposes a method to trigger the onchange event of a form field:

    crmForm.all.YourFieldID.FireOnChange();

    Tuesday, July 27, 2010 12:10 AM

All replies

  • Hi Eddi,

    You need to manually call the onchagne event of the other fields.  This can be done by yourfieldname_onchange0()


    Alex Fagundes - www.PowerObjects.com
    Monday, July 26, 2010 8:19 PM
  • The CRM JS object model exposes a method to trigger the onchange event of a form field:

    crmForm.all.YourFieldID.FireOnChange();

    Tuesday, July 27, 2010 12:10 AM