Skip to content

Document form captchas - #2030

Draft
DanielDarrenJones wants to merge 1 commit into
statamic:6.xfrom
DanielDarrenJones:feature/forms-captcha
Draft

DanielDarrenJones wants to merge 1 commit into
statamic:6.xfrom
DanielDarrenJones:feature/forms-captcha

Conversation

@DanielDarrenJones

Copy link
Copy Markdown
Contributor

Docs for form captchas, added in statamic/cms#16054. A draft until that's reviewed, since its open questions could change names or defaults.

A new Captcha section on the Forms page, between the honeypot and spam submissions, covers:

  • Setting up a driver and its keys, and turning the captcha on per form. Forms refuse submissions until both keys are set, and the null driver turns captchas off.
  • The Captcha Behavior setting: show an error, or save as spam.
  • Placing the widget with form_captcha or {{ form:captcha }}, and showing its error.
  • Submitting with JavaScript (resetting the widget after a failed fetch(), and Alpine Precognition), and Content Security Policies.
  • Writing a custom driver with Captcha::extend().

The form:create tag page gets the form_captcha variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant