Viewing 1 replies (of 1 total)
  • Hi,

    add below code in your theme footer.php
    <script>
    document.addEventListener( ‘wpcf7mailsent’, function( event ) {
    jQuery(‘.wpcf7’).find(‘form’)[0].reset();
    }, false );
    </script>

    It’s working fine.. form value will reset after mail sent event trigger.

    • This reply was modified 6 years, 8 months ago by patelkomal.
Viewing 1 replies (of 1 total)
  • The topic ‘Prevent clear form after ajax submit’ is closed to new replies.