Captcha in the contact form of the site

Created on 21 March 2025, 3 months ago

Problem/Motivation

In the contact form, the captcha does not load the first time, only after refreshing the page.
And it is located between the name and email address, it would be more correct after all the fields below.

๐Ÿ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @N-I
  • ๐Ÿ‡ท๐Ÿ‡บRussia _cosmos_ Izhevsk, Russia

    I've checked the bug you described, so for guest it really doesn't appear.
    It should be fixed.
    In case of position order on the form,
    you can see https://yandex-smartcaptcha.demo.epixd.com/en/webform/contact
    the captcha displayed in the end of the form by default.

  • ๐Ÿ‡ท๐Ÿ‡บRussia _cosmos_ Izhevsk, Russia

    Hi n-i!
    Here's the English translation of your text:

    ---

    I tested the bugs again on [https://simplytest.me/](https://simplytest.me/) and didn't find anything that needed fixing.
    As for the CAPTCHA displaing for guests, it worked as expected for me on the first tryโ€”the only advice I can give in your case is to clear the Drupal or browser cache after attaching the CAPTCHA to a form.

    Regarding the CAPTCHA's position, it has always appeared at the end of the form, right before the submit button, which makes sense since the CAPTCHA module is installed after the Contact module and has a higher weight, so it inserts the CAPTCHA field at the end, after all the feedback form elements.

    This might be a bug in your custom Drupal build, where some changes were made to the modules or the default module weights were altered. I donโ€™t see a reason to add any fixes to change the CAPTCHA element's position because, in a standard tests on a clean Drupal installation at [https://simplytest.me/](https://simplytest.me/), it appears in the correct place.

    ---

    Write me in PM if you have any questions regarding this bug.

  • If you use Yandex SmartCaptcha via the CAPTCHA module, the position of the captcha in the contact form is correct. I installed Yandex SmartCaptcha without the CAPTCHA module.

    But the loading problem remains, users refresh the login page three times for the captcha to appear. I don't know why this happens. I always clear the caches after any changes. The only thought is that the GTM module affects the Yandex captcha loading queue. I don't know how to check this and find the reason.

    I will close the question. If I manage to find the reason why the captcha does not load immediately, I will open another one. Thank you.

Production build 0.71.5 2024