nswdpc / silverstripe-userforms-submissions
Provide nominated members the ability to view the submissions collected by a Silverstripe userform
Installs: 333
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:silverstripe-vendormodule
Requires
- silverstripe/cms: ^4.10.0
- silverstripe/userforms: ^5.12.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3
- phpunit/phpunit: ^9.5
Suggests
- dnadesign/silverstripe-elemental-userforms: Forms as content blocks
This package is auto-updated.
Last update: 2024-10-29 06:25:22 UTC
README
Give nominated members the ability to view submissions collected by a userform. Useful for viewing submissions in a list or table view outside of the administration area.
Submission data
Note: take into account the data being displayed when providing members the ability to view submissions.
Mitigations
- Restrict the number of members who have the relevant permission
- Apply other restrictions, such as MFA for sign-in and network restrictions
- Limit the fields that can be displayed in the listing via the "Show in summary gridfield" form option
Installation
composer require nswdpc/silverstripe-userforms-submissions
License
Documentation
- Create the page
'A page to list form submissions'
in the CMS, update its content - Select the Form (page) or Form (content block) that will have its submissions listed then save. UserDefinedForm and ElementForm (if installed) are supported, currently.
- Assign, or ask an administrator to assign, a member the permission "View userform submissions on a submission listing page"
- Provide the page URL to those members
Configuration
- Fields shown will be those with "Show in summary gridfield" checked in the form configuration, plus Created (formatted).
- Your theme should provide its own
templates/NSWDPC/UserForms/Submissions/Layout/SubmissionListingPage.ss
layout template. The module provides a basic example.
Applying per-form permission
- Create an umbrella group with "View userform submissions on a submission listing page" permission
- Create one group for each form you will show
- Add anyone who can view form submissions to the first group
- Create a
'A page to list form submissions'
page in the CMS - On that page, choose the relevant form on the Form tab and set the "Who can view this page?" group to the group for that particular form.
Maintainers
Bugtracker
We welcome bug reports, pull requests and feature requests on the Github Issue tracker for this project.
Please review the code of conduct prior to opening a new issue.
Security
If you have found a security issue with this module, please email digital[@]dpc.nsw.gov.au in the first instance, detailing your findings.
Development and contribution
If you would like to make contributions to the module please ensure you raise a pull request and discuss with the module maintainers.
Please review the code of conduct prior to completing a pull request.