preProcessForm()
Overview
public any function preProcessForm(
required string formName
, required struct formData
, any validationResult
, array suppressFields
, string fieldNamePrefix = ""
, string fieldNameSuffix = ""
)
Pre-processes an entire form submission (runs any mapped preprocessors for each field to get a generated value prior to validation and/or persisting to the database).
Arguments
| Name | Type | Required | Description |
|---|---|---|---|
| formName | string | Yes | Name of the form |
| formData | struct | Yes | Submitted form data |
| validationResult | any | No | A pre-existing validation result to which to append any errors found during preprocessing |
| suppressFields | array | No | |
| fieldNamePrefix | string | No (default="") | |
| fieldNameSuffix | string | No (default="") |