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
Name | Type | Required | Description |
---|---|---|---|
formId | string | Yes | ID of the form to which the item belongs / will belong |
itemType | string | Yes | Type of the form item, e.g. 'textinput', 'content', etc. |
config | struct | Yes | Configuration struct to validate |
itemId | string | No (default="") | ID of the form item, should it already exist |