• Resolved biplabandmine

    (@biplabandmine)


    Hi, I have added recaptcha to forms in my site. One in header and one in the description part of the page. In header the name of button is “Free Quote” and in description part the name of button is “Enquire Now”. It is showing for some and not showing for some users. Even for same users it only shows sometimes. When it doesn’t show if you inspect the form the captcha code is there but just not loaded properly

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author IQComputing

    (@iqcomputing)

    Hello,

    It could have something to do with WP Rocket lazy loading the ReCaptcha Callback script. If you open your dev tools you should see the following error:

    reCAPTCHA couldn't find user-provided function: recaptchaCallback

    The ReCaptcha callback is in the plugin script wpcf7-recaptcha-controls and looking at the page source we see that WP Rocket is lazy loading the script. We would recommend excluding wpcf7-recaptcha-controls from being lazy loading.

    https://docs.wp-rocket.me/article/976-exclude-files-from-defer-js

    It looks like you may be able to add wpcf7-recaptcha-controls.js to the area linked above in the WP Rocket docs.

    Hopefully this help, but if not you can reply below and we can investigate further. Have a wonderful rest of your week!

    Thread Starter biplabandmine

    (@biplabandmine)

    Is it enough to just add “wpcf7-recaptcha-controls.js” as it is? or we need to add full URL in JS exclude in WP Rocket

    Plugin Author IQComputing

    (@iqcomputing)

    Hello,

    We recommend trying the simple route with just “wpcf7-recaptcha-controls.js” first, saving the settings, clearing the server WP Rocket Cache, clearing your local browser cache, and checking if the issue has resolved.

    If you find the issue persists, then you could try adding the full URL or maybe even parts of the URL such as:

    plugins/wpcf7-recaptcha/assets/js/wpcf7-recaptcha-controls.js

    Hopefully you’re able to find a workaround for your issue with WP Rocket. If you have any questions you may reply back to this thread and we can assist further. Have a wonderful rest of your week!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Recaptcha not working properly’ is closed to new replies.