> For the complete documentation index, see [llms.txt](https://docs.eximee.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.eximee.com/budowanie-aplikacji/interfejs-uzytkownika/formularze/biblioteka-komponentow-bazowych/7-komponenty-specjalne/captcha.md).

# Captcha

{% hint style="info" %}
Dostępność funkcjonalności zależy od licencji i może nie być dostępna we wszystkich wdrożeniach.
{% endhint %}

Komponent captchy jest widżetem googlowym, celem którego jest dopuszczenie do przesłania danych tylko wypełnionych przez człowieka.

![](/files/19defc8d3fb29c40e57c28c584ddce261d219cad)

## Właściwości komponentu

Na wniosku komponent można umieścić wiele razy, a wyświetlanie go można uzależnić od spełnienia warunku.

<figure><img src="/files/PSWKtGWRcgoNiSanJEuq" alt=""><figcaption><p align="center"><em><strong>Ilustracja 1.</strong> Komponent captchy wyświetlany na wniosku</em></p></figcaption></figure>

Podanie wartości captchy umieszczonej na wniosku jest zawsze obowiązkowe - weryfikacja będzie pozytywna wtedy, gdy zostanie zaznaczone pole "Nie jestem robotem" oraz opcjonalnie zostaną wykonane inne czynności (narzucone przez Google).

<figure><img src="/files/ffibUTwjGyY4K9UOBLte" alt=""><figcaption><p align="center"><em><strong>Ilustracja 2.</strong></em> <em>W przykładzie nie zostało zaznaczone pole "Nie jestem robotem", co spowodowało wyświetlenie komunikatu błędu walidacji</em></p></figcaption></figure>

Walidacja komponentu następuje po poprawnym zaznaczeniu grafiki. Komponent przechowuje 3 rodzaje stanów: zbyt długi czas oczekiwania po weryfikacji - "expired", weryfikacja pozytywna - "ok" lub negatywna - "noOk". Interakcje na wniosku mogą być zależne od stanu komponentu.

<figure><img src="/files/qYe9bsJATFyDRxb3uOqx" alt=""><figcaption><p align="center"><em><strong>Ilustracja 3.</strong></em> <em>Komunikat po poprawnej weryfikacji</em></p></figcaption></figure>

## Rejestracja

Aby można było korzystać na wniosku z komponentu, należy zarejestrować w Google domenę oraz parę kluczy. Więcej na ten temat na stronie [Google](https://developers.google.com/recaptcha).

{% hint style="info" %}
Wniosek demo: demo2\_recaptcha
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.eximee.com/budowanie-aplikacji/interfejs-uzytkownika/formularze/biblioteka-komponentow-bazowych/7-komponenty-specjalne/captcha.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
