Here is the code to add event
$(document).on({ click: function() { $(this).hide(); $(\'#form_name\').removeClass(\'hide\');
Try this.
$(document).off('click', '.form-template-name');