Support » Plugin: Controls for Contact Form 7 » Is it possible to disable Ajax and still prevent multiple form submissions?

  • Resolved krashx6

    (@krashx6)


    I was using a block of code that prevented double submissions. It no longer works when using disable Ajax. Anyone know a way to prevent double submissions while still disabling ajax?

    <script>
    jQuery(document).on('click', '.wpcf7-submit', function(e){
         if( jQuery('.ajax-loader').hasClass('is-active') ) {
              e.preventDefault();
              return false;
         }
    });
    </script>
Viewing 1 replies (of 1 total)
  • Plugin Author Kaspars

    (@kasparsd)

    With AJAX disabled Contact Form 7 will submit the form data via a regular POST request so you probably won’t have double submissions. With AJAX disabled, none of the JS events will fire as far as I understand.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.