Found a bug in CF7 plugin
-
Hello Team,
I have found a bug in CF7. When we fillup the form and submit it, if the response is slow then user think form is not submited so they click multiple time and form will submitted multiple time. So can we add a script below so it only allow single time click so it only submit at once. If it is not an issue then ignore it.
$(‘form’).on(‘submit’, function(e) { $(‘.wpcf7-submit’).prop(‘disabled’, true); }); $(“.wpcf7 form”).on(‘submit’, function(e){ var submitButton = $(this).find(‘button.custom-button.footer-contact’); submitButton.attr(‘disabled’, ‘disabled’); submitButton.css(‘cursor’, ‘not-allowed’); submitButton.addClass(‘disabled-button’); });
You must be logged in to reply to this topic.