• My CF7 form works great without the plugin. Though when the plugin is activated it takes two clicks to have the ajax do its thing and submit the form.

    It seems to check the invisible recaptcha first and on success, halt any further events (ie checking the form validation and submitting).

    Is there any way around this?

    • This topic was modified 7 years, 4 months ago by rb.nz.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi rb.nz,

    I have a similar issue and in my case solution is changing line:

    ((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.

    Thx dziudek!!! I hope the developer reads this thread so he can edit it for next release, or we will lose this change.

    Plugin Author MihChe

    (@mihche)

    Hi @dziudek,
    Thanks for posting your solution. I’ll be pleased to integrate this into the code but I still cannot understand when is this happening.
    There is no way for me to replicate this. Do you have any idea?

    Thanks,
    Mihai

    Hi MihChe,

    In fact for me, the solution was also surprising ?? But as you can see – for some reasons the .submit() method is not working in some cases.

    It was a custom WordPress theme without any special changes or tricks which could cause a conflict with other scripts.

    Also the JS console was blank.

    I’ll be really happy if developer is going to integrate this code into plugin, cause every time I set up a new web-site I have to change this code.
    Yet, thanks to dziudek for the solution, works like a charm.

    von Dam

    (@kevindamstra)

    .trigger('click')

    Did the job for me too, Thanx!

    • This reply was modified 7 years, 1 month ago by von Dam.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘CF7 – must click submit button twice to send’ is closed to new replies.