OnChange event is not raised...

OnChange event is not raised...

Post by TWFyaW » Fri, 22 Jun 2007 06:19:43

I have writen code in a OnChange event in a LookUp control, in others forms
this works, but in a specific control this is no raised, i write a simply
alert to test, but not raised, i have make this hundred of times before...
the event is enabled, publish the change but nothing ... i try

"Fixing problems with orphaned OnChange event handlers" from

but don't work, can be a bug??, in other form have lookup, and the onchange
event works normally... how can i debug???, no JavaScript error are show ...

OnChange event is not raised...

Post by Leo Lopes » Fri, 22 Jun 2007 07:33:10

Mario, I don't know if you made any script change to the form but, if
the onChange is not been raised, try the following:

crmForm.all.your_field.onchange = function() {
//add your function code here


According to another post I saw here, this happens (onchange event
dettached from the control) because of replacing HTML code.


Leo Lopes @ L3