field.input¶
Input FlexForm field ViewHelper
Arguments¶
name¶
- DataType
string
- Required
true
- Description
Name of the attribute, FlexForm XML-valid tag name string
label¶
- DataType
string
- Required
false
- Description
Label for the attribute, can be LLL: value. Optional - if not specified, Flux tries to detect an LLL label named "flux.fluxFormId.fields.foobar" based on field name, in scope of extension rendering the Flux form. If field is in an object, use "flux.fluxFormId.objects.objectname.foobar" where "foobar" is the name of the field.
default¶
- DataType
string
- Required
false
- Description
Default value for this attribute
native¶
- DataType
boolean
- Required
false
- Description
If TRUE, this field will treated as a native TCA field (requiring a matching SQL column). If the "name" of this field is an already existing field, that original field will be replaced by this field. If the field is a new field (which doesn't already exist in TCA). You can control where this field visually appears in the editing form by specifying the "position" argument, which supports the same syntax as TYPO3CMSCoreUtilityExtensionManagementUtility::addToAllTCAtypes (after:X before:X and replace:X). Note that when declaring a field as "native" it will no longer be rendered as part of the FlexForm where Flux fields are normally rendered.
position¶
- DataType
string
- Required
false
- Description
Only applies if native=1. Specify where in the editing form this field should be, using the syntax of TYPO3CMSCoreUtilityExtensionManagementUtility::addToAllTCAtypes (after:X before:X and replace:X). Additionally, allows you to specify a TCA sheet if you want this field to be positioned in a dedicated sheet. Examples: position="after:header", position="replace:header", position="after:header My Sheet"
required¶
- DataType
boolean
- Required
false
- Description
If TRUE, this attribute must be filled when editing the FCE
exclude¶
- DataType
boolean
- Required
false
- Description
If TRUE, this field becomes an "exclude field" (see TYPO3 documentation about this)
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.
enabled¶
- DataType
boolean
- Default
true
- Required
false
- Description
If FALSE, disables the field in the FlexForm
requestUpdate¶
- DataType
boolean
- Required
false
- Description
If TRUE, the form is force-saved and reloaded when field value changes
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
variables¶
- DataType
mixed
- Default
array ()
- Required
false
- Description
Freestyle variables which become assigned to the resulting Component - can then be read from that Component outside this Fluid template and in other templates using the Form object from this template
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.
config¶
- DataType
mixed
- Default
array ()
- Required
false
- Description
Raw TCA options - passed directly to "config" section of created field and overrides anything generated by the component itself. Can be used to provide options that Flux itself does not support, and can be used to pass root-level arguments for a "userFunc"
eval¶
- DataType
string
- Default
'trim'
- Required
false
- Description
FlexForm-type validation configuration for this input
size¶
- DataType
integer
- Default
32
- Required
false
- Description
Size of field
maxCharacters¶
- DataType
integer
- Required
false
- Description
Maximum number of characters allowed
minimum¶
- DataType
integer
- Required
false
- Description
Minimum value for integer type fields
maximum¶
- DataType
integer
- Required
false
- Description
Maximum value for integer type fields
placeholder¶
- DataType
string
- Required
false
- Description
Placeholder text which vanishes if field is filled and/or field is focused