inoovum / formcaptcha
Captcha form field to protect recipients from spam.
Installs: 6 423
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:neos-package
Requires
- neos/form-builder: ^2.2
- neos/neos: *
This package is not auto-updated.
Last update: 2025-02-13 13:32:20 UTC
README
Captcha form field to protect recipients from spam.
Installation
The Inoovum.FormCaptcha package is listed on packagist (https://packagist.org/packages/inoovum/formcaptcha) - therefore you don't have to include the package in your "repositories" entry any more.
Just run:
composer require inoovum/formcaptcha
Usage
Use the form element "Captcha" and the validator "Captcha validator". Please note that you have to exclude the form element Captcha in the template of the email finisher.
Override email template
prototype(Neos.Form.Builder:EmailFinisher.Definition) {
options {
templatePathAndFilename = 'resource://Inoovum.FormCaptcha/Private/Templates/Form/Email.html'
}
}
Usage in your own email template
<f:if condition="{0: formValue.element.type} == {0: 'Inoovum.FormCaptcha:Captcha'}">
<f:else>
<th style="text-align:left;">{f:if(condition: formValue.element.label, then: formValue.element.label, else: formValue.element.identifier)}</th>
<td>{formValue.value}</td>
</f:else>
</f:if>