Support » Plugin: Exit Popup » Close popup after send message in Contact Form 7

  • Resolved jastrzab

    (@jastrzab)


    Hi there,
    Thank you for this simple but amazing plugin! I have one question – is there a possibility to close the popup after send message in Contact Form 7? I prepared special form for popup and already tried to close popup with DOM event like this:

    document.addEventListener( 'wpcf7submit', function( event ) {
        ('#exitpopup-modal').hide();
    }, false );

    but it doesn’t work. Is there a trigger to close popup I could use?

    Best regards,
    Marcin

Viewing 1 replies (of 1 total)
  • Plugin Author nimonogi

    (@nimonogi)

    You can use something like:

          $('#SUBMIT-BUTTON-ID').on('click', function() {
            $('#exitpopup-modal').hide();
          });
Viewing 1 replies (of 1 total)
  • The topic ‘Close popup after send message in Contact Form 7’ is closed to new replies.