0

I am facing issue while I am updating lookup value from plugin(pre-Operation).

I have written a java script function on-change of lookup field but when I am updating lookup value from plugin, on-change event triggers. I am not changing value manually.

Can anyone clarify?

any help would be highly appreciated.

Thanks Amar

amar bisht
  • 51
  • 10

1 Answers1

0

That's because the field onchange event is is triggered whenever the field changes, whether client-side or server-side. Thus onChange will be triggered if the field is changed via workflow/plugin. If you want to avoid this, use on save instead. As Arun mentioned, this is a duplicate of this question: Prevent firing of OnChange function after field is updated on server side

Alan Judi
  • 1,074
  • 1
  • 16
  • 32