Shows the usage of the hook "afterBuildingFinished" of EXT:form, for example to prefill forms.
Adds an example form which uses the afterBuildingFinished hook to prefill the form fields with values from logged in frontend user (if exists).
Add via composer:
composer require "passionweb/form-prefill"
- 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 {
1704442020 = EXT:form_prefill/Configuration/Yaml/BaseSetup.yaml
}
module.tx_form.settings.yamlConfigurations {
1704442020 = EXT:form_prefill/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