Ok I finally got it to work. It was not allowing me to create a custom event from within the function. Instead I had to use a return param and put the “bind” node after the one that calls the function. Thanks for your help.