Shows the usage of the hook 'afterSubmit' of EXT:form, for example to validate entered form data.
Adds an example form which uses the afterSubmit hook to validate the entered message and strip unallowed phrases.
Add via composer:
composer require "passionweb/form-after-submit"
- Install the extension via composer
- Flush TYPO3 and PHP Cache
This example uses no 3rd party libraries.
There are no extension settings available.
All necessary configurations are read in using the ext_typoscript_setup.typoscript file.
plugin.tx_form.settings.yamlConfigurations {
1704442017 = EXT:form_after_submit/Configuration/Yaml/BaseSetup.yaml
}
module.tx_form.settings.yamlConfigurations {
1704442017 = EXT:form_after_submit/Configuration/Yaml/BaseSetup.yaml
}
If something does not work as expected take a look at the log file.
Every problem is logged to the TYPO3 log (normally found in var/log/typo3_*.log
)
I'm grateful for any feedback! Be it suggestions for improvement, requests or just a (constructive) feedback on how good or crappy this snippet/repo is.
Feel free to send me your feedback to service@passionweb.de or contact me on Slack