Close on submit

Home Forums Easy FancyBox Pro Close on submit

This topic contains 2 replies, has 2 voices, and was last updated by  Kristijan Marin 7 months, 3 weeks ago.

  • 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.

You must be logged in to reply to this topic.