Skip to content

Commit

Permalink
[Backport 11.5] [DOCS] Add note on accessing defaults in FlexForm att…
Browse files Browse the repository at this point in the history
…ributs (#3613)

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

---------

Co-authored-by: Garvin Hicking <blog@garv.in>
  • Loading branch information
github-actions[bot] and garvinhicking committed Oct 26, 2023
1 parent dd3fab4 commit 33de8d6
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 @@ -491,6 +491,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 33de8d6

Please sign in to comment.