Contact Form 7 - WordPress - Contact form 7 is not working for the first time when it is submitted but when I submits the same form second time it works fine. Error occurred for the first time is "There was an error trying to send your message. Please try again later."
3
votes
1 Answers
0
votes
It seems to check the invisible recaptcha first and on success, halt any further events (ie checking the form validation and submitting).
((null !== cf7SubmitElm) && (typeof jQuery != 'undefined')) ? jQuery(frm).submit() : HTMLFormElement.prototype.submit.call(frm);
to
((null !== cf7SubmitElm) && (typeof jQuery != 'undefined')) ? jQuery(cf7SubmitElm).trigger('click') : HTMLFormElement.prototype.submit.call(frm);
in file /Applications/MAMP/htdocs/pakulska/wp-content/plugins/invisible-recaptcha/engine/PublicEngine.php around line 78.