field¶
FlexForm field ViewHelper
Defines a single field data structure.
Arguments¶
type¶
- DataType
string
- Required
true
- Description
TCA field type
name¶
- DataType
string
- Required
true
- Description
Name of the attribute, FlexForm XML-valid tag name string
label¶
- DataType
string
- Required
false
- Description
Label for field
description¶
- DataType
string
- Required
false
- Description
Field description
exclude¶
- DataType
mixed
- Required
false
- Description
Set to FALSE if field is not an "exclude" field
config¶
- DataType
mixed
- Default
array ()
- Required
false
- Description
TCA "config" array
transform¶
- DataType
string
- Required
false
- Description
Set this to transform your value to this type - integer, array (for csv values), float, DateTime, VendorMyExtDomainModelObject or ObjectStorage with type hint.
onChange¶
- DataType
string
- Required
false
- Description
TCA onChange instruction
displayCond¶
- DataType
string
- Required
false
- Description
Optional "Display Condition" (TCA style) for this particular field. See: https://docs.typo3.org/typo3cms/TCAReference/Reference/Columns/Index.html#displaycond
inherit¶
- DataType
boolean
- Default
true
- Required
false
- Description
If TRUE, the value for this particular field is inherited - if inheritance is enabled by the ConfigurationProvider
inheritEmpty¶
- DataType
boolean
- Default
true
- Required
false
- Description
If TRUE, allows empty values (specifically excluding the number zero!) to be inherited - if inheritance is enabled by the ConfigurationProvider
clear¶
- DataType
boolean
- Required
false
- Description
If TRUE, a "clear value" checkbox is displayed next to the field which when checked, completely destroys the current field value all the way down to the stored XML value
extensionName¶
- DataType
string
- Required
false
- Description
If provided, enables overriding the extension context for this and all child nodes. The extension name is otherwise automatically detected from rendering context.