Skip to content

Commit

Permalink
[DOCS] Add note on accessing defaults in FlexForm attributs
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.

@todo: I don't know if I linked to the `TCAdefaults` section properly, I don't really understand how/where to fetch external :ref: lookups.

Releases: main, 12.4, 11.5
  • Loading branch information
garvinhicking authored and github-actions[bot] committed Oct 26, 2023
1 parent c8a63d3 commit 13a0823
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Documentation/ApiOverview/FlexForms/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,23 @@ The key `flexform` is followed by the field which holds the FlexForm data
.. index:: pair: FlexForms; Fluid
.. _read-flexforms-fluid:

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 TypoScript :typoscript:`TCAdefaults` (see
:ref:`TCAdefaults <TCAdefaults>`) 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.

How to access FlexForms from Fluid
----------------------------------

Expand Down

0 comments on commit 13a0823

Please sign in to comment.