nyeholt/silverstripe-udf-objects

Map Silverstripe UDF submissions to specific data objects

Installs: 2 372

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 1

Open Issues: 0

Type:silverstripe-vendormodule

1.1.2 2021-03-19 01:27 UTC

This package is auto-updated.

Last update: 2024-10-19 09:19:30 UTC


README

Provides a way to map the information from a user defined form submission to a custom data object type.

Composer Install

composer require nyeholt/silverstripe-udf-objects:~1.0

Requirements

  • SilverStripe 4.1+
  • MultiValueField 5.0+

Documentation

The module adds a "Submissions" section to the CMS. In here, create a new Form Submission list, which is where submissions are stored. First create a submission list, then navigate in the site tree to find the user defined form you want to submit to this list; a new dropdown is available on the Submissions tab.

Once this association is created, you can update the form submission list to specify the data object being saved into, and then choose the field mapping.

Next, apply the FormResponseExtension to the data object being used to capture submissions.

Note that if you have a multivaluefield on the target object, you can choose multiple fields to be mapped to it; each source field name will appear as a key in that target field.