Close on submit

Forums Easy FancyBox Pro Close on submit

Viewing 2 reply threads
  • Author
    Posts
    • #7477
      Kristijan Marin
      Participant

      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

    • #7483
      RavanH
      Keymaster

      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.

    • #7489
      Kristijan Marin
      Participant

      great it works. Thanks.

Viewing 2 reply threads
  • You must be logged in to reply to this topic.