Hi all,
Happy New Year!
I have multiple attributes on a form and they all fire the same js function. I need to dynamically fetch attribute name from which onChange handler gets fired. I do the following:
Tick 'Pass execution context' check box for each attribute's event handler.
js function I call takes executionContext as a parameter.
Then I fetch the object and then I try to fetch its name, but I'm getting an error.
var attribute = executionContext.getEventSource();
var attrName = attribute.getName();
I get an error saying that getName is not a valid function.
We have 8.2 version on-prem.
What am I doing wrong?
Best regards,
-Tony Suslovich.