Hi all, seeing a situation with the Gravity Forms google reCAPTCHA plugin (reCAPTCHA v3 Enterprise). Disable Google reCAPTCHA Badge is checked in the GF admin area. That setting is not being respected due to a timing issue - the plugin’s hideBadge() function is being called before Google’s reCAPTCHA script has injected the badge into the DOM.
The hideBadge() function should:
- Use a
MutationObserverto watch for the badge - Or use
setIntervalto periodically check for the badge - Or hook into reCAPTCHA’s ready callback more effectively
Perhaps this is more a feature request? I can’t find any bug report facility in Gravity Forms anywhere?
To resolve I’ve reverted to hard coded hack - style declarations to remove…
<style>
.grecaptcha-badge {
visibility: hidden !important;
display: none !important;
opacity: 0 !important;
position: absolute !important;
left: -9999px !important;
}
</style>
Anyone else come across this?