Issue Feature Under Review

#111734Add StoreSubmission finisher

Josua Vogel 12/05/26, 12:32 updated 12/05/26, 15:06

Description

Add a finisher StoreSubmission that stores each submission as a record in a new table form_submission:

  • Options storagePid (default: the current page), retentionPeriod (days, stored as expires) and storeUploads (uploads referenced through a type=file field).
  • Values are stored as a versioned JSON payload with type, label, raw value and display value per element, so a submission can be read without its form definition.
  • Disabled elements are not stored. Neither are elements with the rendering option excludeFromSubmissionStorage, which core sets for Password, AdvancedPassword, Honeypot, StaticText and ContentElement.
  • The finisher can be configured in the form editor.
  • The PSR-14 event BeforeFormSubmissionIsStoredEvent allows listeners to modify the record or skip storage.

Reviews 3

History 04

  1. Gerrit Code Review pushed patch set 1 for main to change 98362 status New Under Review 12/05/26, 12:44

  2. Gerrit Code Review pushed patch set 2 for main to change 98362 12/05/26, 14:03

  3. Gerrit Code Review pushed patch set 3 for main to change 98362 12/05/26, 14:25

  4. Gerrit Code Review pushed patch set 4 for main to change 98362 12/05/26, 15:06