guave / formsave-bundle
Saving Forms to DB for Contao 4.13+
Installs: 795
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Type:contao-bundle
Requires
- php: ^7.4 || ^8.0
- contao/core-bundle: ^4.13
- league/csv: ^9.8
- symfony/config: ^5.4
- symfony/dependency-injection: ^5.4
- symfony/http-kernel: ^5.4
Requires (Dev)
- bamarni/composer-bin-plugin: ^1.5
- contao/manager-plugin: ^2.0
- phpunit/phpunit: ^9.5
- roave/security-advisories: dev-latest
- symfony/phpunit-bridge: ^6.1
Conflicts
- contao/manager-plugin: <2.0 || >=3.0
README
This contao module saves forms configured with the save form field to the tl_form_save
table.
Requirements
- Contao 4.13+
- PHP 7.4 or 8.0+
Install
$ composer require guave/formsave-bundle $ php vendor/bin/contao-console contao:migrate
Usage
Create a form that saves to the table tl_form_save
.
Add a hidden field with the field name alias
and a default value of your choice.
The value will be used to display the form in the exported CSV.
Every other field with a field name will be serialized into a form_data
field in the database.
Within the form overview in Contao there will be a new button that allows you to download a CSV of the submissions.
There is also an optional Form Name Content Element, which you can add to the same page as the form.
This will override the alias
from the form.
This is useful for when you have the same form for multiple uses.
This way you can differentiate the submitions in the CSV by the alias
.