nswdpc / silverstripe-userforms-submissions
Provide nominated members the ability to view the submissions collected by a Silverstripe userform
Package info
github.com/nswdpc/silverstripe-userforms-submissions
Type:silverstripe-vendormodule
pkg:composer/nswdpc/silverstripe-userforms-submissions
Requires
Requires (Dev)
- cambis/silverstan: ^2
- cambis/silverstripe-rector: ^2
- friendsofphp/php-cs-fixer: ^3
- nswdpc/ci-files: dev-v-4
- phpstan/phpstan: ^2
- phpstan/phpstan-phpunit: ^2
- phpunit/phpunit: ^9.5
- rector/rector: ^2
Suggests
- dnadesign/silverstripe-elemental-userforms: Forms as content blocks
This package is auto-updated.
Last update: 2026-04-07 02:13:42 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.sslayout 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
- PD Web Team
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.