closing the Quform Colorbox after form is submitted

Home Forums Quform PHP closing the Quform Colorbox after form is submitted

This topic is: resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12516
    frankiestockboy
    Participant

    I’m using both Quform and Colorbox. When you get to my page, a Colobox lightbox opens automatically, with my Quform inside.

    Upon sucessful completion of the Quform, I’d like the resulting action to be the lightbox closes (rather than a success message or redirect to another page).

    I’ve been messing around with the code with no luck. How can I accomplish this?

    #12542
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #12574
    frankiestockboy
    Participant

    Thanks for the level of detail, Ally, that’s perfect. In my case I needed it to close immediately. I had to make a small tweak since it’s iframed content that I’m closing, so my final code looks like this:

    $config['successMessage'] = '<script>parent.$.colorbox.close();</script>';

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy