Form control: Captcha

The captcha form control renders a Google ReCaptcha (v2) control, and was introduced in 10.10.38.

Note that the name of the Captcha field is irrelevant - this is just used internally to attach validation errors. Validation is done automatically, as part of the standard form validation.

If Captcha keys have not been set up for the site, then the control will simply not be displayed (and it will not try to validate it).

Arguments

theme (optional) Available values are light (default) or dark
size (optional) Available values are normal (default) or compact

Example

<field name="captcha" control="captcha" theme="dark" size="compact" label="Are you human?" />