.. include:: /Includes.rst.txt .. _typo3.cms.form.prototypes..formelementsdefinition: ======================== [formElementsDefinition] ======================== .. _typo3.cms.form.prototypes..formelementsdefinition-properties: Properties ========== .. _typo3.cms.form.prototypes..formelementsdefinition.*: [formElementsDefinition] ------------------------ :aspect:`Option path` TYPO3.CMS.Form.prototypes..formElementsDefinition :aspect:`Data type` array :aspect:`Needed by` Frontend/ Backend (form editor) :aspect:`Mandatory` Yes :aspect:`Default value` .. code-block:: yaml :linenos: prototypes: : formElementsDefinition: [...] :aspect:`Good to know` - :ref:`"Custom form element implementations"` :aspect:`Description` Array which defines the available form elements. Every key within this array is called the ````. .. _typo3.cms.form.prototypes..formelementsdefinition.: --------------------------- :aspect:`Option path` TYPO3.CMS.Form.prototypes..formElementsDefinition. :aspect:`Data type` string :aspect:`Needed by` Frontend/ Backend (form editor) :aspect:`Mandatory` Yes :aspect:`Default value (for prototype 'standard')` .. code-block:: yaml :linenos: prototypes: standard: Form: [...] Page: [...] SummaryPage: [...] Fieldset: [...] GridRow: [...] Text: [...] Password: [...] AdvancedPassword: [...] Textarea: [...] Honeypot: [...] Hidden: [...] Email: [...] Telephone: [...] Url: [...] Number: [...] Date: [...] Checkbox: [...] MultiCheckbox: [...] MultiSelect: [...] RadioButton: [...] SingleSelect: [...] DatePicker: [...] StaticText: [...] ContentElement: [...] FileUpload: [...] ImageUpload: [...] :aspect:`Good to know` - :ref:`"Custom form element implementations"` :aspect:`Description` This array key identifies a form element. This identifier could be used to attach a form element to a form. .. _typo3.cms.form.prototypes..formelementsdefinition.-commonproperties: Common properties ============================================= .. _typo3.cms.form.prototypes..formelementsdefinition..defaultValue: defaultValue ------------ :aspect:`Option path` TYPO3.CMS.Form.prototypes..formElementsDefinition..defaultValue :aspect:`Data type` string/ array :aspect:`Needed by` Frontend/ Backend (form editor) :aspect:`Mandatory` No :aspect:`Default value` undefined :aspect:`Description` If set this string/ array will be used as default value of the form element. Array is in place for multi value elements (e.g. the ``MultiSelect`` form element). .. _typo3.cms.form.prototypes..formelementsdefinition..implementationclassname: implementationClassName ----------------------- :aspect:`Option path` TYPO3.CMS.Form.prototypes..formElementsDefinition..implementationClassName :aspect:`Data type` string :aspect:`Needed by` Frontend/ Backend (form editor) :aspect:`Mandatory` Yes :aspect:`Default value` Depends (see :ref:`concrete element configuration .formelementsdefinition.\-concreteconfigurations>`) :aspect:`Good to know` - :ref:`"Custom form element implementations"` :aspect:`Description` Classname which implements the form element. .. _typo3.cms.form.prototypes..formelementsdefinition..renderingoptions.translation.translationfiles: renderingOptions.translation.translationFiles --------------------------------------------- :aspect:`Option path` TYPO3.CMS.Form.prototypes..formElementsDefinition..renderingOptions.translation.translationFiles :aspect:`Data type` string/ array :aspect:`Needed by` Frontend/ Backend (form editor) :aspect:`Mandatory` No :aspect:`Default value` Depends (see :ref:`concrete element configuration .formelementsdefinition.\-concreteconfigurations>`) :aspect:`Good to know` - :ref:`"Custom form element implementations"` - :ref:`"Translate form definition"` :aspect:`Description` Filesystem path(s) to translation files which should be searched for form element property translations. If ``translationFiles`` is undefined, - :ref:`"TYPO3.CMS.Form.prototypes.\.formElementsDefinition.Form.renderingOptions.translation.translationFiles".formelementsdefinition.form.renderingoptions.translation.translationfiles>` will be used. .. _typo3.cms.form.prototypes..formelementsdefinition..renderingOptions.translation.translatePropertyValueIfEmpty: renderingOptions.translation.translatePropertyValueIfEmpty ---------------------------------------------------------- :aspect:`Option path` TYPO3.CMS.Form.prototypes..formElementsDefinition..renderingoptions.translation.translatepropertyvalueifempty :aspect:`Data type` bool :aspect:`Needed by` Frontend/ Backend (form editor) :aspect:`Mandatory` No :aspect:`Default value` true :aspect:`Good to know` - :ref:`"Custom form element implementations"` - :ref:`"Translate form definition"` :aspect:`Description` If set to ``false``, the form element property translation will be skipped if the form element property value is empty. .. _typo3.cms.form.prototypes..formelementsdefinition..renderingoptions.templatename: renderingOptions.templateName ----------------------------- :aspect:`Option path` TYPO3.CMS.Form.prototypes..formElementsDefinition..renderingOptions.templateName :aspect:`Data type` string :aspect:`Needed by` Frontend/ Backend (form editor) :aspect:`Mandatory` (see :ref:`concrete element configuration .formelementsdefinition.\-concreteconfigurations>`) :aspect:`Default value` undefined :aspect:`Good to know` - :ref:`"Custom form element implementations"` - :ref:`"templateName"` :aspect:`Description` Set ``templateName`` to define a custom template name which should be used instead of the ````. .. _typo3.cms.form.prototypes..formelementsdefinition..properties: properties ---------- :aspect:`Option path` TYPO3.CMS.Form.prototypes..formElementsDefinition..properties :aspect:`Data type` array :aspect:`Needed by` Frontend/ Backend (form editor) :aspect:`Mandatory` No :aspect:`Default value` Depends (see :ref:`concrete element configuration .formelementsdefinition.\-concreteconfigurations>`) :aspect:`Good to know` - :ref:`"Custom form element implementations"` - :ref:`"Translate form definition"` :aspect:`Description` Array with form element specific properties. .. _typo3.cms.form.prototypes..formelementsdefinition..properties.elementDescription: properties.elementDescription ----------------------------- :aspect:`Option path` TYPO3.CMS.Form.prototypes..formElementsDefinition..properties.elementDescription :aspect:`Data type` string :aspect:`Needed by` Frontend/ Backend (form editor) :aspect:`Mandatory` No :aspect:`Default value` Undefined :aspect:`Good to know` - :ref:`"Custom form element implementations"` - :ref:`"Translate form definition"` :aspect:`Description` Set a description of the form element. By default, it is displayed below the form element. .. _typo3.cms.form.prototypes..formelementsdefinition..properties.fluidadditionalattributes: properties.fluidAdditionalAttributes ------------------------------------ :aspect:`Option path` TYPO3.CMS.Form.prototypes..formElementsDefinition..properties.fluidAdditionalAttributes :aspect:`Data type` array :aspect:`Needed by` Frontend/ Backend (form editor) :aspect:`Mandatory` No :aspect:`Default value` Depends (see :ref:`concrete element configuration .formelementsdefinition.\-concreteconfigurations>`) :aspect:`Good to know` - :ref:`"Custom form element implementations"` - :ref:`"Translate form definition"` :aspect:`Description` The values within this array are directly used within the form element ViewHelper's property ``additionalAttributes``. .. _typo3.cms.form.prototypes..formelementsdefinition..properties.gridcolumnclassautoconfiguration: properties.gridColumnClassAutoConfiguration ------------------------------------------- :aspect:`Option path` TYPO3.CMS.Form.prototypes..formElementsDefinition..properties.gridColumnClassAutoConfiguration :aspect:`Data type` array :aspect:`Needed by` Frontend/ Backend (form editor) :aspect:`Mandatory` No :aspect:`Default value` Undefined :aspect:`Related options` - :ref:`"GridRow viewPorts".formelementsdefinition.gridrow.properties.gridcolumnclassautoconfiguration.viewports>` :aspect:`Description` If the form element lies within a GridRow you can define the number of columns which the form element should occupy. Each ``viewPorts`` configuration key has to match with on ofe the defined viewports within ``TYPO3.CMS.Form.prototypes..formElementsDefinition.GridRow.properties.gridColumnClassAutoConfiguration.viewPorts`` .. code-block:: yaml :linenos: gridColumnClassAutoConfiguration: viewPorts: lg: numbersOfColumnsToUse: '2' md: numbersOfColumnsToUse: '3' sm: numbersOfColumnsToUse: '4' xs: numbersOfColumnsToUse: '5' .. _typo3.cms.form.prototypes..formelementsdefinition..label: label ----- :aspect:`Option path` TYPO3.CMS.Form.prototypes..formElementsDefinition..label :aspect:`Data type` string :aspect:`Needed by` Frontend/ Backend (form editor) :aspect:`Mandatory` No :aspect:`Default value` Depends (see :ref:`concrete element configuration .formelementsdefinition.\-concreteconfigurations>`) :aspect:`Good to know` - :ref:`"Custom form element implementations"` - :ref:`"Translate form definition"` :aspect:`Description` The label of the form element. .. _typo3.cms.form.prototypes..formelementsdefinition..formeditor: formEditor ---------- :aspect:`Option path` TYPO3.CMS.Form.prototypes..formElementsDefinition..formEditor :aspect:`Data type` array :aspect:`Needed by` Backend (form editor) :aspect:`Mandatory` No (but recommended) :aspect:`Default value` Depends (see :ref:`concrete element configuration .formelementsdefinition.\-concreteconfigurations>`) .. :aspect:`Good to know` ToDo :aspect:`Description` Array with configurations for the ``form editor`` .. _typo3.cms.form.prototypes..formelementsdefinition..formeditor.predefineddefaults: formEditor.predefinedDefaults ----------------------------- :aspect:`Option path` TYPO3.CMS.Form.prototypes..formElementsDefinition..formEditor.predefinedDefaults :aspect:`Data type` array :aspect:`Needed by` Backend (form editor) :aspect:`Mandatory` Yes :aspect:`Default value` Depends (see :ref:`concrete element configuration .formelementsdefinition.\-concreteconfigurations>`) :aspect:`Good to know` - :ref:`"Translate form editor settings"` :aspect:`Description` Defines predefined defaults for form element properties which are prefilled, if the form element is added to a form. .. _typo3.cms.form.prototypes..formelementsdefinition..formeditor.propertycollections: formEditor.propertyCollections ------------------------------ :aspect:`Option path` TYPO3.CMS.Form.prototypes..formElementsDefinition..formEditor.propertyCollections :aspect:`Data type` array :aspect:`Needed by` Backend (form editor) :aspect:`Mandatory` No :aspect:`Default value` Depends (see :ref:`concrete element configuration .formelementsdefinition.\-concreteconfigurations>`) :aspect:`Good to know` - :ref:`"Inspector"` :aspect:`Description` Array with configurations for ``property collections`` for the form element. .. _typo3.cms.form.prototypes..formelementsdefinition..formeditor.propertycollections.validators: formEditor.propertyCollections.validators ----------------------------------------- :aspect:`Option path` TYPO3.CMS.Form.prototypes..formElementsDefinition..formEditor.propertyCollections.validators :aspect:`Data type` array :aspect:`Needed by` Backend (form editor) :aspect:`Mandatory` No :aspect:`Default value` Depends (see :ref:`concrete element configuration .formelementsdefinition.\-concreteconfigurations>`) :aspect:`Good to know` - :ref:`"Inspector"` :aspect:`Description` Array with configurations for available validators for a form element. .. _typo3.cms.form.prototypes..formelementsdefinition..formeditor.propertycollections.validators.*.identifier: formEditor.propertyCollections.validators.[*].identifier -------------------------------------------------------- :aspect:`Option path` TYPO3.CMS.Form.prototypes..formElementsDefinition..formEditor.propertyCollections.validators.[*].identifier :aspect:`Data type` string :aspect:`Needed by` Backend (form editor) :aspect:`Mandatory` Yes :aspect:`Default value` Depends (see :ref:`concrete element configuration .formelementsdefinition.\-concreteconfigurations>`) :aspect:`Good to know` - :ref:`"Inspector"` - :ref:`"\".validatorsdefinition.\>` :aspect:`Description` Identifies the validator which should be attached to the form element. Must be equal to a existing ````. .. _typo3.cms.form.prototypes..formelementsdefinition..formeditor.propertycollections.validators.*.editors: formEditor.propertyCollections.validators.[*].editors ----------------------------------------------------- :aspect:`Option path` TYPO3.CMS.Form.prototypes..formElementsDefinition..formEditor.propertyCollections.validators.[*].editors :aspect:`Data type` string :aspect:`Needed by` Backend (form editor) :aspect:`Mandatory` Yes :aspect:`Default value` Depends (see :ref:`concrete element configuration .formelementsdefinition.\-concreteconfigurations>`) :aspect:`Good to know` - :ref:`"Inspector"` :aspect:`Description` Array with available ``inspector editors`` for this validator. .. _typo3.cms.form.prototypes..formelementsdefinition..formeditor.propertycollections.finishers: formEditor.propertyCollections.finishers ---------------------------------------- :aspect:`Option path` TYPO3.CMS.Form.prototypes..formElementsDefinition..formEditor.propertyCollections.finishers :aspect:`Data type` array :aspect:`Needed by` Backend (form editor) :aspect:`Mandatory` No :aspect:`Default value` Depends (see :ref:`concrete element configuration .formelementsdefinition.\-concreteconfigurations>`) :aspect:`Good to know` - :ref:`"Inspector"` :aspect:`Description` Array with configurations for available finisher for a form definition. .. _typo3.cms.form.prototypes..formelementsdefinition..formeditor.propertycollections.finishers.*.identifier: formEditor.propertyCollections.finishers.[*].identifier ------------------------------------------------------- :aspect:`Option path` TYPO3.CMS.Form.prototypes..formElementsDefinition..formEditor.propertyCollections.finishers.[*].identifier :aspect:`Data type` string :aspect:`Needed by` Backend (form editor) :aspect:`Mandatory` No :aspect:`Default value` Depends (see :ref:`concrete element configuration .formelementsdefinition.\-concreteconfigurations>`) :aspect:`Good to know` - :ref:`"Inspector"` - :ref:`"\".finishersdefinition.\>` :aspect:`Description` Identifies the finisher which should be attached to the form definition. Must be equal to a existing ````. .. _typo3.cms.form.prototypes..formelementsdefinition..formeditor.propertycollections.finishers.*.editors: formEditor.propertyCollections.finishers.[*].editors ---------------------------------------------------- :aspect:`Option path` TYPO3.CMS.Form.prototypes..formElementsDefinition..formEditor.propertyCollections.finishers.[*].editors :aspect:`Data type` string :aspect:`Needed by` Backend (form editor) :aspect:`Mandatory` No :aspect:`Default value` Depends (see :ref:`concrete element configuration .formelementsdefinition.\-concreteconfigurations>`) :aspect:`Good to know` - :ref:`"Inspector"` :aspect:`Description` Array with available ``inspector editors`` for this finisher. .. _typo3.cms.form.prototypes..formelementsdefinition..formeditor.label: formEditor.label ---------------- :aspect:`Option path` TYPO3.CMS.Form.prototypes..formElementsDefinition..formEditor.label :aspect:`Data type` string :aspect:`Needed by` Backend (form editor) :aspect:`Mandatory` Yes :aspect:`Default value` Depends (see :ref:`concrete element configuration .formelementsdefinition.\-concreteconfigurations>`) :aspect:`Good to know` - :ref:`"Translate form editor settings"` :aspect:`Description` This label will be shown within the "new element" Modal. .. _typo3.cms.form.prototypes..formelementsdefinition..formeditor.group: formEditor.group ---------------- :aspect:`Option path` TYPO3.CMS.Form.prototypes..formElementsDefinition..formEditor.group :aspect:`Data type` string :aspect:`Needed by` Backend (form editor) :aspect:`Mandatory` No :aspect:`Related options` - :ref:`TYPO3.CMS.Form.prototypes.\.formEditor.formElementGroups .formeditor.formelementgroups>` :aspect:`Default value` Depends (see :ref:`concrete element configuration .formelementsdefinition.\-concreteconfigurations>`) :aspect:`Description` Define within which group within the ``form editor`` "new Element" modal the form element should be shown. The ``group`` value must be equal to an array key within ``formElementGroups``. .. _typo3.cms.form.prototypes..formelementsdefinition..formeditor.groupsorting: formEditor.groupSorting ----------------------- :aspect:`Option path` TYPO3.CMS.Form.prototypes..formElementsDefinition..formEditor.groupSorting :aspect:`Data type` int :aspect:`Needed by` Backend (form editor) :aspect:`Mandatory` No :aspect:`Default value` Depends (see :ref:`concrete element configuration .formelementsdefinition.\-concreteconfigurations>`) .. :aspect:`Good to know` ToDo :aspect:`Description` The position within the ``formEditor.group`` for this form element. .. _typo3.cms.form.prototypes..formelementsdefinition..formeditor.iconidentifier: formEditor.iconIdentifier ------------------------- :aspect:`Option path` TYPO3.CMS.Form.prototypes..formElementsDefinition..formEditor.iconIdentifier :aspect:`Data type` string :aspect:`Needed by` Backend (form editor) :aspect:`Mandatory` Yes :aspect:`Default value` Depends (see :ref:`concrete element configuration .formelementsdefinition.\-concreteconfigurations>`) .. :aspect:`Good to know` ToDo :aspect:`Description` An icon identifier which must be registered through the ``\TYPO3\CMS\Core\Imaging\IconRegistry``. This icon will be shown within - :ref:`"Inspector [FormElementHeaderEditor]".formelementsdefinition.\.formeditor.editors.*.formelementheadereditor>`. - :ref:`"Abstract view formelement templates"`. - ``Tree`` component. - "new element" Modal .. _typo3.cms.form.prototypes..formelementsdefinition..formEditor.editors-tree: formEditor.editors ------------------ .. toctree:: formEditor/Index .. _typo3.cms.form.prototypes..formelementsdefinition.-concreteconfigurations: Concrete configurations ======================= .. toctree:: formElementTypes/AdvancedPassword formElementTypes/Checkbox formElementTypes/ContentElement formElementTypes/Date formElementTypes/DatePicker formElementTypes/Email formElementTypes/Fieldset formElementTypes/FileUpload formElementTypes/Form formElementTypes/GridRow formElementTypes/Hidden formElementTypes/Honeypot formElementTypes/ImageUpload formElementTypes/MultiCheckbox formElementTypes/MultiSelect formElementTypes/Number formElementTypes/Page formElementTypes/Password formElementTypes/RadioButton formElementTypes/SingleSelect formElementTypes/StaticText formElementTypes/SummaryPage formElementTypes/Telephone formElementTypes/Text formElementTypes/Textarea formElementTypes/Url