Download the PHP package bigfork/silverstripe-form-capture without Composer
On this page you can find all versions of the php package bigfork/silverstripe-form-capture. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bigfork/silverstripe-form-capture
More information about bigfork/silverstripe-form-capture
Files in bigfork/silverstripe-form-capture
Package silverstripe-form-capture
Short Description Provides a method to capture simple silverstripe forms and a friendly admin interface for users
License BSD-3-Clause
Homepage http://github.com/bigfork/silverstripe-form-capture
Informations about the package silverstripe-form-capture
Silverstripe Form Capture
Provides a method to capture simple Silverstripe forms and a friendly admin interface for users.
Requirements
- PHP ^8.3
- silverstripe/framework ^6
- silverstripe/cms ^6
For Silverstripe CMS 4/5 support, use an earlier release of this module.
Installation
After installing you will need to run 'dev/build'.
Usage
To store submissions from a form simply call $form->captureForm() in your form handler method. See the example below for usage:
Example
In the page controller:
When capturing a form some useful information is returned which can be used in the controller. For example a link is returned to the submission area in the CMS.
Clearing old submissions
You can use the ClearOldSubmissionsTask to automatically delete form submissions older than a pre-defined age. To use this task, you must first configure the maximum age of form submissions:
Credit
Thank you to Andrew Haine for building the original Silverstripe Form Capture module and allowing us to take over maintenance & development.