You can't use the recaptcha element in forms where you don't want to save the submissions, the annotation in RecaptchaElementWebformHandler has not been removed.

Comments

Gertlor created an issue. See original summary.

gertlor’s picture

gertlor’s picture

Status: Active » Needs review
casey’s picture

Status: Needs review » Needs work

Instead of removing the submission attribute, I suggest setting it to \Drupal\webform\Plugin\WebformHandlerInterface::SUBMISSION_OPTIONAL

gertlor’s picture

I've applied the changes Casey

  • casey committed aa56730 on 1.0.x authored by Gertlor
    Issue #3211928 by Gertlor: RecaptchaElementWebformHandler requires...
casey’s picture

Status: Needs work » Fixed

Thanks for the patch!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.