# Captcha

{% hint style="info" %}
Availability of the functionality depends on the license and may not be available in all deployments.
{% endhint %}

The captcha component is a Google widget whose purpose is to allow submission only of data filled out by a human.

![](/files/a6f0af5ad5f72d0af935218459bbde686c56415a)

## Component properties

The component can be placed on the form multiple times, and its display can depend on a condition being met.

<figure><img src="/files/4229bd4d899350a64c1afce021bc7b3c432a6e00" alt=""><figcaption><p align="center"><em><strong>Figure 1.</strong> Captcha component displayed on the form</em></p></figcaption></figure>

Providing the value of the captcha placed on the form is always mandatory - verification will be positive when the "I am not a robot" box is checked and, optionally, other actions are performed (imposed by Google).

<figure><img src="/files/8cfa5ce0afc467621000fd2208cd3fe4ea4b494a" alt=""><figcaption><p align="center"><em><strong>Figure 2.</strong></em> <em>In the example, the "I am not a robot" box was not checked, which caused a validation error message to be displayed</em></p></figcaption></figure>

Component validation occurs after correctly selecting the graphic. The component stores 3 types of states: too long a waiting time after verification - "expired", positive verification - "ok" or negative - "noOk". Interactions on the form may depend on the component state.

<figure><img src="/files/5e57b264d02f230ed0259f18521ecc65106de909" alt=""><figcaption><p align="center"><em><strong>Figure 3.</strong></em> <em>Message after successful verification</em></p></figcaption></figure>

## Registration

To use the component on the form, you must register the domain and a key pair with Google. More about this on the page [Google](https://developers.google.com/recaptcha).

{% hint style="info" %}
Demo form: demo2\_recaptcha
{% endhint %}


---

# Agent Instructions: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
