CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart) is a program commonly used in online transactions to distinguish between humans and automated programs or bots. It poses a challenge and evaluates user response to determine if it's a human or a bot interacting with the site. It prevents the user to proceed if the test fails and helps make online transactions secure by keeping bots from posting spam or malicious purposes.
AEM Forms supports CAPTCHA in adaptive forms. You can use any of the following approaches to implement CAPTCHA:
- AEM Forms support only reCaptcha v2. Any other version is not supported.
- CAPTCHA in adaptive forms is not supported in offline mode on AEM Forms app.
AEM offers CAPTCHA service that form authors can use to implement basic CAPTCHA functionality in adaptive forms. It does not require any additional configuration and is available out-of-the-box for use in adaptive forms. Also, see ReCAPTCHA service by Google if you require advanced CAPTCHA implementation in adaptive forms.
The CAPTCHA service by AEM displays a widget with an alphanumeric string and a text box for user input. A user is required to type in the exact string in the box and submit the form within 60 seconds. The string refreshes every 60 seconds or when the user clicks the Reload button. The user input is validated by the AEM server on form submission. Errors are displayed below the CAPTCHA widget if the validation fails or user tries to submit the form without entering the string.
For information about using AEM CAPTCHA service in adaptive forms, see Using CAPTCHA in adaptive forms.
CAPTCHA in adaptive forms is not supported in offline mode on AEM Forms app.
Form authors can use the reCAPTCHA service by Google to implement CAPTCHA in adaptive forms. It offers advanced CAPTCHA capabilities to protect your site. For more information on how reCAPTCHA works, see Google reCAPTCHA.
Once the reCAPTCHA service is configured, it is available for use in adaptive forms. For more information, see Using CAPTCHA in adaptive forms.
From the Captcha service drop-down, select one of the following services.
- Default to enable CAPTCHA service by AEM.
- reCaptcha to enable reCAPTCHA service by Google if you configured it as described in ReCAPTCHA service by Google. Select a configuration from the Settings drop-down. Also, select the size as Normal or Compact for the reCAPTCHA widget.