• Hello,

    First of all, thank you for your plugin.

    I believe I have found a bug related to the automatic form detection feature.Environment

    • WordPress
    • Elementor Pro Forms
    • Simple CAPTCHA with Cloudflare Turnstile

    Issue

    The plugin is configured to automatically detect forms on the current page so that the Turnstile assets are only loaded when necessary.

    However, this detection does not work when an Elementor Form is inserted through an Elementor template using a shortcode.

    In my case, the page itself does not contain the form directly. Instead, it includes an Elementor template via shortcode, and that template contains the Elementor Form widget.

    Because of this, the automatic detection does not recognize that an Elementor Form exists on the page, so the Turnstile JavaScript is never loaded. As a result, the hidden field cf-turnstile-response is not generated, and form submissions fail with the following debug error:

    missing-input-response

    Workaround

    The only way I could make it work was to disable the automatic detection and force the plugin to load on every page.

    This solves the problem, but it means the Turnstile assets are loaded site-wide, which negatively affects performance.Expected behavior

    The automatic detection should also work when Elementor Forms are rendered indirectly, for example:

    • through an Elementor template included via shortcode;
    • through a Theme Builder template;
    • or through any other dynamic rendering method supported by Elementor.

    I hope this helps. If you need any additional information or if you would like me to test a development version, I’d be happy to help.

    Thank you for your work!

You must be logged in to reply to this topic.