preProcessFormField()
Overview
public any function preProcessFormField(
required string formName
, required string fieldName
, required string fieldValue
, required any validationResult
, string fieldNamePrefix = ""
, string fieldNameSuffix = ""
)
Pre-processes an individual field's data 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 | The name of the form in which the field is defined |
| fieldName | string | Yes | The name of the field |
| fieldValue | string | Yes | The submitted value that will be pre-processed |
| validationResult | any | Yes | |
| fieldNamePrefix | string | No (default="") | |
| fieldNameSuffix | string | No (default="") |