locked
Setting value to lookup field from plugin is firing onchange javascript RRS feed

  • Question

  • Hi All,

    I am using CRM 2013.

    On the account entity, i have a field PrimaryContact. For this Primary Contact field on change event i have written javascript.

    On the post update plugin of account, i am setting value  to primarycontact field. While setting this value from plugin the onchange event of primarycontact is firing. I think this should not happen.

    Any one faced similar issue?

    Wednesday, July 2, 2014 4:38 PM

All replies

  • If you have a plugin on the field and you have auto save enabled in CRM 2013 this would be a normal effect. Auto save is firing every few seconds and the JavaScript update is registering a change against the field. 

    Jason Lattimer
    My Blog -  Follow me on Twitter -  LinkedIn

    Wednesday, July 2, 2014 4:42 PM
    Moderator
  • Updating from server side using plugins should not fire the client side javascript right?
    Wednesday, July 2, 2014 4:47 PM