• Resolved michael82svk

    (@michael82svk)


    Solution

    Insert this code to page with cf7 with conditional fields,

    Because after pressing the button when packing back the expanded field, you may lost finish message from display… may help you hold confirmation verificatoon message on display, after button will you see message on display allways, if you need for this case…

    <script>jQuery(function ($) {
    $(document).ready(function ()
    {
    var wpcf7Elm = document.querySelector( ‘.wpcf7’ );
    wpcf7Elm.addEventListener( ‘wpcf7submit’, function( event ) {
    setTimeout(function() {
    $([document.documentElement, document.body]).animate({
    scrollTop: $(“.wpcf7-response-output”).offset().top – 200
    }, 500);
    }, 500);
    //console.log(“Submited”);
    }, false );
    });
    });</script>

    • This topic was modified 3 years, 8 months ago by michael82svk.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘issue= scroll to message to send – after sending when packing the expanded field’ is closed to new replies.