your custom component needs to raise the click event somewhere. Currently the custom component doesn’t raise the click event. Since it doesn’t raise a click event then the click event will never fire, and so your function custom_form_1_click will never have a click event to handle.