From 33de8d6b9a35e7d0b64559ef8f5b98891f33b30a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 26 Oct 2023 13:42:56 +0200 Subject: [PATCH] [Backport 11.5] [DOCS] Add note on accessing defaults in FlexForm attributs (#3613) 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 --------- Co-authored-by: Garvin Hicking --- 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 21a174c0f3..0e54124578 100644 --- a/Documentation/ApiOverview/FlexForms/Index.rst +++ b/Documentation/ApiOverview/FlexForms/Index.rst @@ -491,6 +491,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: