Custom close button

Need help to close the popup when clicking the custom link button

  • Nebu John
    • FLS

    Hi Ryan ,

    I hope you are well and thank you for reaching out to us!

    I have added the following script and the pop-up is now closing from the custom button added retaining the call to action of the button.

    <script>
    (function ($) {
      $(document).ready(function () {
        // get the click event of CTA button
        $('.hustle_module_id_1 #customClose').click(function() {
          // trigger the click event for closing popup
          $('.hustle_module_id_1 .hustle-button-close').trigger('click');
        });
      });
    })(jQuery);
    </script> 

    Note: The number 1 in the code is your popup ID and customClose is the ID of the div that you have added to hold the link.

    Please get back to us if you need any further assistance regarding this. Have a good day!

    Kind Regards,
    Nebu John