r3h6 / form-frontend-validation
Frontend validation for the TYPO3 form framework.
Installs: 8 898
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 2
Open Issues: 2
Type:typo3-cms-extension
Requires
- php: >= 7.4, < 8.3
- typo3/cms-core: ^11.5 || ^12.4
- typo3/cms-form: ^11.5 || ^12.4
Requires (Dev)
- helmich/typo3-typoscript-lint: ^2.5 || ^3.1
- phpmd/phpmd: ^2.9
- saschaegerer/phpstan-typo3: ^1.8
- typo3/coding-standards: 0.6.*
- typo3/testing-framework: ^6.16 || ^7.0
Replaces
- typo3-ter/form-frontend-validation: 2.0.1
README
form_frontend_validation
Frontend validation for the TYPO3 form framework.
Adds data attributes to form elements for the Parsley JavaScript form validation library.
Currently implemented validators:
- AdvancedPassword
- AlphanumericValidator
- CountValidator
- DateRangeValidator
- EmailAddressValidator
- FloatValidator
- IntegerValidator
- NotEmptyValidator
- NumberRangeValidator
- NumberValidator
- RegularExpressionValidator
- StringLengthValidator
Installation
$ composer req r3h6/form-frontend-validation
Integration
Include in your TypoScript template following static templates:
- Form Validation "Parsley"
- Form Validation "Parsley JavaScript" (Optional)
- Form Validation "Parsley Styles" (Optional)
New template paths will be added to the form framework on key 11. If you changed the form field partial template you must add following HTML code to your partial:
<span id="{element.uniqueIdentifier}-errors" class="error help-block"></span>