'Error: reCAPTCHA placeholder element must be an element or id' with Sendinblue/Wordpress form

admin

Administrator
Staff member
I'm trying to add a reCaptcha (v3 invisible) with the Sendinblue plugin in wordpress for my newsletters' but I have an error in console : Unhandled Promise Rejection: Error: reCAPTCHA placeholder element must be an element or id
The website: <a href="https://www.pharmabox.app" rel="nofollow noreferrer">https://www.pharmabox.app</a>
Does anyone have an idea to resolve my problem ?
Thank you very much
(Sorry for my bad English, I'm French )
Code:
&lt;script type=&quot;text/javascript&quot;&gt;
var gCaptchaSibWidget;
var onloadSibCallback = function() {
   var element = document.getElementsByClassName('sib-default-btn');
   gCaptchaSibWidget = grecaptcha.render(element[0], {
      'sitekey': '6Lcl_NQbAAAAACzZc33DPbjoQrf8IcvgQu5xvLo6',
      'callback': sibVerifyCallback
   });
};
&lt;/script&gt;

&lt;script src=&quot;https://www.google.com/recaptcha/api.js?onload=onloadSibCallback&amp;render=explicit&quot; async defer&gt;&lt;/script&gt;
&lt;form id=&quot;sib_signup_form_1&quot; method=&quot;post&quot; class=&quot;sib_signup_form&quot;&gt;```