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

NameTypeRequiredDescription
formNamestringYesThe name of the form in which the field is defined
fieldNamestringYesThe name of the field
fieldValuestringYesThe submitted value that will be pre-processed
validationResultanyYes
fieldNamePrefixstringNo (default="")
fieldNameSuffixstringNo (default="")