"Error: Invalid ReCAPTCHA client id" when executing an invisible captcha "Error: Invalid ReCAPTCHA client id" when executing an invisible captcha wordpress wordpress

"Error: Invalid ReCAPTCHA client id" when executing an invisible captcha


Try this one :--

The grecaptcha.reset() method accepts an optional widget_id parameter, and defaults to the first widget created if unspecified. A widget_id is returned from the grecaptcha.render() method for each widget created. So you need to store this id, and use it to reset that specific widget:

var widgetId = grecaptcha.render(container);grecaptcha.reset(widgetId);

If More information then Read google recaptcha docs:--https://developers.google.com/recaptcha/docs/display#js_api