From 9de91d5e1965fbd5028272d41581547c291487ec Mon Sep 17 00:00:00 2001 From: Garvin Hicking Date: Thu, 26 Oct 2023 13:40:39 +0200 Subject: [PATCH] [DOCS] Add note on accessing defaults in FlexForm attributs (#3612) Follow-up on https://github.com/TYPO3-Documentation/TYPO3CMS-Reference-TSconfig/pull/391 to also document at the "other end" how to access flexform defaults. Releases: main, 12.4, 11.5 --- Documentation/ApiOverview/FlexForms/Index.rst | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Documentation/ApiOverview/FlexForms/Index.rst b/Documentation/ApiOverview/FlexForms/Index.rst index 00599d42be..f7187f5007 100644 --- a/Documentation/ApiOverview/FlexForms/Index.rst +++ b/Documentation/ApiOverview/FlexForms/Index.rst @@ -475,6 +475,25 @@ The key `flexform` is followed by the field which holds the FlexForm data * :ref:`TypoScript: 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:`` XML attribute within the specification of each +FlexForm attribute. If that is missing, an empty value will be +shown in the backend (:ref:`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: