reCAPTCHA v3 Fails After CookieYes Update – grecaptcha Not Defined in Gravity Forms

After updating the CookieYes plugin to version 3.3.6, and gravity-forms plugin to 2.9.21 we’re seeing a issue with Gravity Forms v3 using reCAPTCHA v3 (invisible) on our production site where users are failing to submit the form without cookie consent of Accept All.

The error in the browser console:
frontend.min.js?ver=2.0.0:2 Uncaught ReferenceError: grecaptcha is not defined

It appears the reCAPTCHA script from google.com/recaptcha is being blocked by CookieYes due to the NID cookie being classified as advertising which uses google.com url pattern. As a result, the reCAPTCHA script never loads and form submissions fail entirely.

We’ve reached out to CookieYes support, but while that’s in progress — does Gravity Forms provide:

  • A known workaround for this scenario?
  • Any supported hook to switch the reCAPTCHA script source to www.recaptcha.net?
  • A method to defer loading reCAPTCHA until cookie consent is given?

Would appreciate any guidance if this is a known conflict or has best-practice fixes.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.