Having difficulties calling a custom function from an event listener

Hello @Michael_Kadron

Take a look at this post. I believe that must helps you.

Regards, Dima.