Close on submit

Your Account / Forums / Easy FancyBox Pro / Close on submit

  • Author
    Posts
    • December 2, 2016 at 3:46 pm #7477

      Hi,

      I use Contact Form 7 …. and under advanced settings I can put javascript call to do whatever I want after the submit button was successfully executed ….

      So how can I close fancybox when my form was submitted.

      Thank you,
      Kris

    • December 2, 2016 at 3:46 pm #7483

      Hi Kris, the call that is needed to close fancybox is jQuery.fancybox.close();

      Or, if the light box content was embedded in iFrame mode then use parent.jQuery.fancybox.close(); but I suppose that you are using Inline Content mode for the contact form.

    • December 2, 2016 at 3:46 pm #7489

      great it works. Thanks.

  • You must be logged in to reply to this topic.