Compatibility with Real Cookie Banner
-
Hey!
Here is one of the developers behind Real Cookie Banner: GDPR (DSGVO) & ePrivacy Cookie Consent – WordPress plugin | www.remarpro.com ????
We want to make our plugin compatible with your Ninja Forms plugin, but we cannot successfully use the provided consent functionality (reference).
I have added the following coding:
document.addEventListener("nf_consent_status_check", function (e) {
const { consent_state, services } = nfFrontEnd.nf_consent_status_response;
consent_state.push(
window.consentApi.consentSync("http", "_GRECAPTCHA", "*").cookieOptIn
);
services.push("rcb");
});
document.addEventListener("nf_consent_link", function (e) {
if (e.detail.services.includes("rcb")) {
window.consentApi.consent("http", "_GRECAPTCHA", "*").then(() => {
setTimeout(() => {
console.log(grecaptcha);
nf_reload_after_cookie_consent(
e.detail.submitFieldID,
e.detail.layoutView
);
}, 1000);
});
}
});But we always get the following error: https://i.imgur.com/cAks9sl.png.
grecaptcha
is definitively available beforenf_reload_after_cookie_consent
, as you can see in the console log.The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.