issue= scroll to message to send – after sending when packing the expanded field
-
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>
- The topic ‘issue= scroll to message to send – after sending when packing the expanded field’ is closed to new replies.