23de5a85c2
A task helper for recovering UserForm uploads targeting incorrectly migrated folders (from Silverstripe CMS 3) If your project has not been migrated from Silverstripe CMS 3, you do not need this helper. Before running this task make sure you have repaired the migrated folders themselves. To do that you have to run the extra migration subtask (`migrate-folders`). This task is particularly looking at all UserForm file submissions and checks they are in the same folder where the particular version of its EditableFileField has been set up to upload it to. If it finds the file has been misplaced, it tries to move it to the correct folder, but only if the file has not had any manipulations since the uploading happened (the file Version=1). If an affected file has a draft, then only Live version will be moved, but the draft will be preserved as is. For more details see CVE-2020-9280 |
||
---|---|---|
_config | ||
.tx | ||
client | ||
code | ||
docs | ||
images | ||
lang | ||
templates | ||
tests | ||
_config.php | ||
.cow.json | ||
.editorconfig | ||
.eslintignore | ||
.eslintrc.js | ||
.gitattributes | ||
.gitignore | ||
.nvmrc | ||
.sass-lint.yml | ||
.scrutinizer.yml | ||
.travis.yml | ||
.upgrade.yml | ||
code-of-conduct.md | ||
codecov.yml | ||
composer.json | ||
contributing.md | ||
license.md | ||
package.json | ||
phpcs.xml.dist | ||
phpunit.xml.dist | ||
readme.md | ||
webpack.config.js | ||
yarn.lock |
UserForms
UserForms enables CMS users to create dynamic forms via a drag and drop interface and without getting involved in any PHP code.
Requirements
See the "require" section of composer.json
Features
- Construct a form using all major form fields (text, email, dropdown, radio, checkbox..)
- Ability to extend userforms from other modules to provide extra fields.
- Ability to email multiple people the form submission
- View submitted submissions and export them to CSV
- Define custom error messages and validation settings
- Optionally display and hide fields using javascript based on users input
- Displays a confirmation message when navigating away from a partially completed form.
Installation
$ composer require silverstripe/userforms
You'll also need to run dev/build
. You should see a new page type in the CMS 'User Defined Form'. This has a new 'Form' tab which has your form builder.
Documentation
Thanks
I would like to thank everyone who has contributed to the module, bugfixers, testers, clients who use the module and everyone that submits new features.
A big thanks goes out to Jan Düsedau for drawing the custom icon set for the form fields.
Versioning
This library follows Semver. According to Semver, you will be able to upgrade to any minor or patch version of this library without any breaking changes to the public API. Semver also requires that we clearly define the public API for this library.
All methods, with public
visibility, are part of the public API. All other methods are not part of the public API. Where possible, we'll try to keep protected
methods backwards-compatible in minor/patch versions, but if you're overriding methods then please test your work before upgrading.
Reporting Issues
Please create an issue for any bugs you've found, or features you're missing.