I'm an Idiot - Fixed onDataChange() - No Event data??

Hi Folks

Confused by this. I have an onDataChange event and I expected to get a form name form this:

function onDataChangeTest(oldValue, newValue, event)
{
application.output(event.getFormName())
}

However the event comes back as undefined?? Other code shows the correct event data? Is this not supported in onDataChange() or did I screw up how I’m supposed to be getting the event info on this event???

Fixed: my Idiocy knows no bounds… :oops:

so you are saying that you have attached that method to a lets say textfield
and you don’t get the event when the text field is changing?

jcompagner:
so you are saying that you have attached that method to a lets say textfield
and you don’t get the event when the text field is changing?

I’m saying I’m an idiot and I created my own problem here Johan - but thanks for reviewing my post and hope my idiocy does not prevent you supporting me in future!!! :oops: :oops: :oops: :shock: :o :D