Skip to content

reCAPTCHA doesn't work with Ajax #195

@darwinsoftware

Description

@darwinsoftware

Using reCAPTCHA v3 doesn't work with a form that uses Ajax.

The JS code which is added to the form waits for a form submit trigger, but that trigger is interrupted with an event.preventDefault() by the JavaScript that handles the form submission via Ajax.

As such, the reCAPTCHA hidden input is never populated with a value and all form submissions fail.

The same applies to both of the v2 options.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions