Last active
July 3, 2019 14:28
-
-
Save lucas-pelton/35cd6e09e80532b14a949d3046ce8c4e to your computer and use it in GitHub Desktop.
Prevent multiple clicks and submissions in Contact Form 7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//http://epsiloncool.ru/programmirovanie/preventing-multiple-submits-in-contact-form-7 | |
jQuery(document).on('click', '.wpcf7-submit', function(e){ | |
if( jQuery('.ajax-loader').hasClass('is-active') ) { | |
e.preventDefault(); | |
return false; | |
} | |
}); |
You can prevent duplicate submissions or you can check email already exists. Please check following url https://ciphercoin.com/downloads/cfdb7-unique-field/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As said LENGEND