evanshunt/ss-form-exporter

There is no license information available for the latest version (dev-master) of this package.

A SilverStripe dev task for exporting userform data to CSV

Installs: 24

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 4

Forks: 0

Open Issues: 0

Type:silverstripe-module

dev-master 2018-07-16 19:57 UTC

This package is auto-updated.

Last update: 2024-02-29 02:38:13 UTC


README

This module creares a SilverStripe BuildTask which will export user form submissions to a .csv file.

Requirements

  • Silverstripe 3.x

Installation

composer install evanshunt/ss-form-exporter

Usage

You need to know the ID of the form you wish to export. It is passed as a url parameter or command line argument.

URL:

http://localhost/dev/tasks/ExportUserFormToCsv?form-id={YOUR_FORM_ID}

CLI:

php framework/cli-script.php dev/tasks/ExportUserFormToCsv form-id={YOUR_FORM_ID}

Date Range

Two additional parameters before and after can be used to narrow your search to specific dates. These both accept date strings according to the rules of PHP's strtotime. Eg. m/d/y, d-m-y, or YYYY-MM-DD.

One or both parameters can be used in order to narrow the range.

Notes

This task may fail if the fields currently defined for the Form do not match the submitted entries.