{"id":17343479,"url":"https://github.com/firesphere/silverstripe-partial-userforms","last_synced_at":"2025-04-14T20:11:20.767Z","repository":{"id":32381811,"uuid":"132411053","full_name":"Firesphere/silverstripe-partial-userforms","owner":"Firesphere","description":"Saving and resuming of multi-page UserForm implementations","archived":false,"fork":false,"pushed_at":"2023-01-04T01:22:47.000Z","size":2198,"stargazers_count":5,"open_issues_count":33,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-06T20:52:05.231Z","etag":null,"topics":["hacktoberfest","partial-forms","partial-submissions","silverstripe-4","silverstripe-module","userforms"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Firesphere.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":"contributing.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-07T05:25:22.000Z","updated_at":"2022-01-11T09:12:13.000Z","dependencies_parsed_at":"2023-01-14T21:15:15.316Z","dependency_job_id":null,"html_url":"https://github.com/Firesphere/silverstripe-partial-userforms","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Firesphere%2Fsilverstripe-partial-userforms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Firesphere%2Fsilverstripe-partial-userforms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Firesphere%2Fsilverstripe-partial-userforms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Firesphere%2Fsilverstripe-partial-userforms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Firesphere","download_url":"https://codeload.github.com/Firesphere/silverstripe-partial-userforms/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240245894,"owners_count":19771028,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","partial-forms","partial-submissions","silverstripe-4","silverstripe-module","userforms"],"created_at":"2024-10-15T16:09:30.735Z","updated_at":"2025-02-25T23:33:53.340Z","avatar_url":"https://github.com/Firesphere.png","language":"PHP","readme":"[![CircleCI](https://img.shields.io/circleci/project/github/Firesphere/silverstripe-partial-userforms.svg)](https://circleci.com/gh/Firesphere/silverstripe-partial-userforms)\n[![codecov](https://codecov.io/gh/Firesphere/silverstripe-partial-userforms/branch/master/graph/badge.svg)](https://codecov.io/gh/Firesphere/silverstripe-partial-userforms)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Firesphere/silverstripe-partial-userforms/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/Firesphere/silverstripe-partial-userforms/?branch=master)\n\n# Partial User Defined Form submissions\n\nThis module aims to store partial submissions of userforms, for where the User Defined Form has multiple \"pages\".\n\nThe partials are stored and removed when the form is finished.\n\n# Installation\n\n`composer require firesphere/partialuserforms`\n\n# Usage\n\nPartial form submissions are stored in the database and visible on the forms in the CMS.\n\nA daily export of the partial submissions can be acquired by checking the checkbox on the form\nand setting the configuration in the Settings\n\n# Requirements\n\n- UserDefinedForms 5+\n- SilverStripe Recipe CMS 1+\n- QueuedJobs 4+\n\n## Dev requirements\n\n- PHPUnit\n- Immediate exception printer\n- PHP CodeSniffer\n\n# Usage with Elemental UserForms\n\nAdd the following to your config yml:\n```yml\n\nDNADesign\\ElementalUserForms\\Model\\ElementForm:\n  extensions:\n    - Firesphere\\PartialUserforms\\Extensions\\UserDefinedFormExtension\n    \n```\n\n# Extensions\n\nTo manage the CSV's that are send out, e.g. to filter certain values or remove records from the CSV,\nthe export job has an extension point calld `updateCSVRecords`, in which you can filter records, e.g.\n```php\n\nclass PartialSubmissionJobExtension extends Extension\n{\n\n    /**\n     * Remove records that do not have an email address\n     * to reduce the amount of useless records\n     * @param $csvArray\n     * @param $editableFields\n     */\n    public function updateCSVRecords(\u0026$csvArray, $editableFields)\n    {\n        $emailAddress = array_search('email_address', array_keys($editableFields));\n        foreach ($csvArray as $key =\u003e $value)\n        {\n            if (empty($value[$emailAddress])) {\n                unset($csvArray[$key]);\n            }\n        }\n    }\n}\n\n```\n\n# Benefits\n\nWith Partial forms, partial submissions are available to CMS users, to see how far a visitor got through the form\nand optionally make a call to the user, asking why they gave up.\n\n# Further improvements\n\n- Save the partial form to LocalStorage, to enable pre-filling of forms\n- Retrieve the partial form from the server to enable pre-filling of the forms\n- JS test coverage\n\n# Actual license\n\nThis module is published under BSD 3-clause license, although these are not in the actual classes, the license does apply:\n\nhttp://www.opensource.org/licenses/BSD-3-Clause\n\nCopyright (c) 2012-NOW(), Simon \"Firesphere\" Erkelens\n\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n\n    Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\n    Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n\n# Did you read this entire readme? You rock!\n\nPictured below is a cow, just for you.\n```\n\n               /( ,,,,, )\\\n              _\\,;;;;;;;,/_\n           .-\"; ;;;;;;;;; ;\"-.\n           '.__/`_ / \\ _`\\__.'\n              | (')| |(') |\n              | .--' '--. |\n              |/ o     o \\|\n              |           |\n             / \\ _..=.._ / \\\n            /:. '._____.'   \\\n           ;::'    / \\      .;\n           |     _|_ _|_   ::|\n         .-|     '==o=='    '|-.\n        /  |  . /       \\    |  \\\n        |  | ::|         |   | .|\n        |  (  ')         (.  )::|\n        |: |   |;  U U  ;|:: | `|\n        |' |   | \\ U U / |'  |  |\n        ##V|   |_/`\"\"\"`\\_|   |V##\n           ##V##         ##V##\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiresphere%2Fsilverstripe-partial-userforms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffiresphere%2Fsilverstripe-partial-userforms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffiresphere%2Fsilverstripe-partial-userforms/lists"}