• I always have to make my life difficult haha. Using the contact form 7 plugin I created an overlay contact form. Everything works smoothly, the email sends without a problem. Where I am having trouble is with the thank you and the required fields notifications. When I hit send it redirects to the homepage, it’s not until I click on the form link again that I see the thank you message or required fields notifications.

    what I’m trying to accomplish is, no matter what page on the site the user can click on the contact form and will come up as an overlay. Any error or thank you messages should automatically populate without having to click on the contact link again.

    thecoffeecupstudio.com

    here is the code for the form
    this is the link code
    <li ><a href="#contact_form" class="contact_pop"><div id="consult"></div>free consult </a></li>

    and this is the form:

    <!-- popup form  -->
            <a href="#x" class="overlay" id="contact_form"></a>
            <div class="popup">
    
                <div class="form">
    
    	<?php echo do_shortcode( '[contact-form-7 id="30" title="Contact form"]	' ); ?>
    
    	<a class="close" href="#close"></a>
    </div><!--end form-->
    </div><!--end popup-->

    this is the additional setting code in the contact form plugin

    on_sent_ok: "location.replace('#formContent');"

    I will appreciate any help

  • The topic ‘Contact Form 7 on_sent_ok & css overlay’ is closed to new replies.