validateItemConfig()

Overview

public any function validateItemConfig(
      required string formId  
    , required string itemType
    , required struct config  
    ,          string itemId   = ""
)

Validates the configuration for an item within a form. Returns a Preside validation result object.

Arguments

NameTypeRequiredDescription
formIdstringYesID of the form to which the item belongs / will belong
itemTypestringYesType of the form item, e.g. 'textinput', 'content', etc.
configstructYesConfiguration struct to validate
itemIdstringNo (default="")ID of the form item, should it already exist