FormLister can use modified MODX captcha and Google Recaptcha by default.
Set the "captcha" parameter value with the name of captcha files folder (located at assets/snippets/FormLister/lib/captcha/) to enable it:
&captcha=`modxCaptcha`
The parameter named "captchaParams" contains an array of captcha settings. For example:
&captchaParams=`{
"width":200,
"height":120
}`
The field name to get captcha value from user is defined by the "captchaField" parameter ("vericode" by default). Validation rule for this field is created automatically.
To output captcha in form template use [+captcha+] placeholder.
Settings:
Uses Google reCAPTCHA V2. Include the following script in page tempalate to use it:
<script src='https://www.google.com/recaptcha/api.js'></script>
The value of "captchaField" parameter should be set to "g-recaptcha-response" (see documentation).
Settings: