# Custom Captcha not selectable

**URL:** <https://forum.shopware.com/t/custom-captcha-not-selectable/106470>\
**Category:** Programming (EN)\
**Created:** [11. Februar 2025 um 09:26 UTC](https://forum.shopware.com/t/custom-captcha-not-selectable/106470 "2025-02-11T09:26:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leif](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/leif/32/14886_2.png) [@Leif](https://forum.shopware.com/u/Leif)\
**Post date:** [11. Februar 2025 um 09:26 UTC](https://forum.shopware.com/t/custom-captcha-not-selectable/106470/1 "2025-02-11T09:26:18Z")

</div>

Hi,

I created a custom captcha class which has no real implementation yet:

```auto
#[Package('storefront')]
class TestCaptcha extends AbstractCaptcha
{
    final public const CAPTCHA_NAME = 'testCaptcha';

    public function isValid(Request $request, array $captchaConfig): bool
    {
        return true;
    }

    public function getName(): string
    {
        return self::CAPTCHA_NAME;
    }
}

```

Before implementing the Captcha itself I want to be able to select it in the administration. It does show up in the select box, but I am unable to select it:

 ![Bildschirmfoto-2025-02-11-um-10.21.30@2x](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/0/e/0e69fed4b7b098b34ef7d8a2e8f192604ae41517.jpeg)

Clicking on „Test Captcha“ does not do anything. The other Captcha implementations can be selected however.

I read [Add custom captcha | Shopware Documentation](https://developer.shopware.com/docs/guides/plugins/plugins/storefront/add-custom-captcha.html) which did not help.

What do I have to do to make the Captcha selectable?

---

<div class="post-metadata">

**Author:** ![gokul.tech.007s](https://avatars.discourse-cdn.com/v4/letter/g/b2d939/32.png) [@gokul.tech.007s](https://forum.shopware.com/u/gokul.tech.007s)\
**Post date:** [20. Februar 2025 um 16:05 UTC](https://forum.shopware.com/t/custom-captcha-not-selectable/106470/2 "2025-02-20T16:05:22Z")

</div>

Did you try in the python way ?

---

<div class="post-metadata">

**Author:** ![kai.jansen](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/kai.jansen/32/26386_2.png) [@kai.jansen](https://forum.shopware.com/u/kai.jansen)\
**Post date:** [2. Juli 2025 um 09:30 UTC](https://forum.shopware.com/t/custom-captcha-not-selectable/106470/3 "2025-07-02T09:30:16Z")

</div>

You have to add a migration file to extend the system config entry with the key „core.basicInformation.activeCaptchasV2“ with your captcha.

If your captcha need any configuration settings you have to override the template of the sw-settings-captcha-select-v2 admin component to implemet your config fields.
