Mats Eklund
2014-09-10 15:42:10 UTC
Hi Alan,
When adding an xf:dispatch element to my form, I get an error message during runtime "Error dispatching event 'my-custom-event' : TypeError Unable to get value of the property 'listeners': object is null or undefined". I was able to fix it by putting a condition around last line in the body of the definition of the function 'XsltForms_listener(...)' in xsltforms.js (variable subform is null).
Please consider adding this to official code!
Kind regards,
Mats
When adding an xf:dispatch element to my form, I get an error message during runtime "Error dispatching event 'my-custom-event' : TypeError Unable to get value of the property 'listeners': object is null or undefined". I was able to fix it by putting a condition around last line in the body of the definition of the function 'XsltForms_listener(...)' in xsltforms.js (variable subform is null).
Please consider adding this to official code!
Kind regards,
Mats