Skip to content

Commit

Permalink
[DOCS] Add note on accessing defaults in FlexForm attributs (#3612)
Browse files Browse the repository at this point in the history
Follow-up on TYPO3-Documentation/TYPO3CMS-Reference-TSconfig#391 to also document at the "other end" how to access flexform defaults.

Releases: main, 12.4, 11.5
  • Loading branch information
garvinhicking committed Oct 26, 2023
1 parent 79de350 commit 9de91d5
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Documentation/ApiOverview/FlexForms/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,25 @@ The key `flexform` is followed by the field which holds the FlexForm data
* :ref:`TypoScript: flexform <t3tsref:data-type-gettext-flexform>`


.. index:: pair: FlexForms; Default value
.. _default-flexforms-attribute:

Providing default values for FlexForms attributes
-------------------------------------------------

When a new content element with an attached FlexForm is created, the
default values for each FlexForm attribute is fetched from the
:xml:`<default>` XML attribute within the specification of each
FlexForm attribute. If that is missing, an empty value will be
shown in the backend (:ref:`FormEngine <FormEngine>`)
fields.

While you can use page TSconfig's :ref:`t3tsref:pageTsTcaDefaults` to
modify defaults of usual TCA-based attributes, this is not
possible on FlexForms. This is because the values are calculated
at an earlier step in the Core workflow, where FlexForm values
have not yet been extracted.

.. index:: pair: FlexForms; Fluid
.. _read-flexforms-fluid:

Expand Down

0 comments on commit 9de91d5

Please sign in to comment.