diff --git a/typo3/sysext/form/Classes/ViewHelpers/RenderAllFormValuesViewHelper.php b/typo3/sysext/form/Classes/ViewHelpers/RenderAllFormValuesViewHelper.php index 29725a81c6d7af34ec1d3f78c888a301b6a4cbff..518c341d9664449d17a0b200f063c65afe9479d7 100644 --- a/typo3/sysext/form/Classes/ViewHelpers/RenderAllFormValuesViewHelper.php +++ b/typo3/sysext/form/Classes/ViewHelpers/RenderAllFormValuesViewHelper.php @@ -84,10 +84,13 @@ class RenderAllFormValuesViewHelper extends AbstractViewHelper if ( !$element instanceof FormElementInterface - || $element->getType() === 'Honeypot' || ( isset($renderingOptions['_isCompositeFormElement']) - && $renderingOptions['_isCompositeFormElement'] = true + && $renderingOptions['_isCompositeFormElement'] === true + ) + || ( + isset($renderingOptions['_isHiddenFormElement']) + && $renderingOptions['_isHiddenFormElement'] === true ) ) { continue; diff --git a/typo3/sysext/form/Configuration/Yaml/BaseSetup.yaml b/typo3/sysext/form/Configuration/Yaml/BaseSetup.yaml index afebdb60ddef39381b042740e17c9c43d9afb674..dac7932fd680f3be035894bf0ba2de0c75487e00 100644 --- a/typo3/sysext/form/Configuration/Yaml/BaseSetup.yaml +++ b/typo3/sysext/form/Configuration/Yaml/BaseSetup.yaml @@ -149,10 +149,14 @@ TYPO3: properties: renderAsHiddenField: false styleAttribute: 'position:absolute; margin:0 0 0 -999em;' + renderingOptions: + _isHiddenFormElement: true Hidden: __inheritances: 10: 'TYPO3.CMS.Form.mixins.formElementMixins.FormElementMixin' + renderingOptions: + _isHiddenFormElement: true ### FORM ELEMENTS: HTML5 ### Email: diff --git a/typo3/sysext/form/Documentation/Config/configuration/Index.rst b/typo3/sysext/form/Documentation/Config/configuration/Index.rst index 7d020d9833e8b306a1e21f290f6876577c1ff756..a95f026ca5646036b4e2eb66b1fc1a5df20c9784 100644 --- a/typo3/sysext/form/Documentation/Config/configuration/Index.rst +++ b/typo3/sysext/form/Documentation/Config/configuration/Index.rst @@ -1784,6 +1784,8 @@ Full default configuration elementErrorClassAttribute: error renderAsHiddenField: false styleAttribute: 'position:absolute; margin:0 0 0 -999em;' + renderingOptions: + _isHiddenFormElement: true Hidden: formEditor: editors: @@ -1836,6 +1838,8 @@ Full default configuration containerClassAttribute: input elementClassAttribute: '' elementErrorClassAttribute: error + renderingOptions: + _isHiddenFormElement: true Email: formEditor: editors: diff --git a/typo3/sysext/form/Documentation/Config/proto/formElements/formElementTypes/Hidden.rst b/typo3/sysext/form/Documentation/Config/proto/formElements/formElementTypes/Hidden.rst index 98b775ca30b87338b68a99691c55083a03bdd024..ef81c922fea223624340570b2e7652e37b92a7fb 100644 --- a/typo3/sysext/form/Documentation/Config/proto/formElements/formElementTypes/Hidden.rst +++ b/typo3/sysext/form/Documentation/Config/proto/formElements/formElementTypes/Hidden.rst @@ -16,6 +16,9 @@ Properties .. _typo3.cms.form.prototypes.<prototypeIdentifier>.formelementsdefinition.hidden.implementationclassname: .. include:: Hidden/implementationClassName.rst +.. _typo3.cms.form.prototypes.<prototypeIdentifier>.formelementsdefinition.hidden.renderingoptions._isHiddenFormElement: +.. include:: Hidden/renderingOptions/_isHiddenFormElement.rst + .. _typo3.cms.form.prototypes.<prototypeIdentifier>.formelementsdefinition.hidden.properties.containerclassattribute: .. include:: Hidden/properties/containerClassAttribute.rst diff --git a/typo3/sysext/form/Documentation/Config/proto/formElements/formElementTypes/Honeypot.rst b/typo3/sysext/form/Documentation/Config/proto/formElements/formElementTypes/Honeypot.rst index e0a691ea65bc45c91281354babc8770ea221fc79..58534a910d3ae382e0adb76d3267e0ed7f1eb2c7 100644 --- a/typo3/sysext/form/Documentation/Config/proto/formElements/formElementTypes/Honeypot.rst +++ b/typo3/sysext/form/Documentation/Config/proto/formElements/formElementTypes/Honeypot.rst @@ -15,6 +15,9 @@ Properties .. _typo3.cms.form.prototypes.<prototypeIdentifier>.formelementsdefinition.honeypot.implementationclassname: .. include:: Honeypot/implementationClassName.rst +.. _typo3.cms.form.prototypes.<prototypeIdentifier>.formelementsdefinition.honeypot.renderingoptions._isHiddenFormElement: +.. include:: Honeypot/renderingOptions/_isHiddenFormElement.rst + .. _typo3.cms.form.prototypes.<prototypeIdentifier>.formelementsdefinition.honeypot.properties.containerclassattribute: .. include:: Honeypot/properties/containerClassAttribute.rst diff --git a/typo3/sysext/form/Documentation/Config/prototypes/formElementsDefinition/formElementTypes/Hidden/renderingOptions/_isHiddenFormElement.rst b/typo3/sysext/form/Documentation/Config/prototypes/formElementsDefinition/formElementTypes/Hidden/renderingOptions/_isHiddenFormElement.rst new file mode 100644 index 0000000000000000000000000000000000000000..1ab6b1836c933d249730c0d21235801baf2253ec --- /dev/null +++ b/typo3/sysext/form/Documentation/Config/prototypes/formElementsDefinition/formElementTypes/Hidden/renderingOptions/_isHiddenFormElement.rst @@ -0,0 +1,32 @@ +renderingOptions._isHiddenFormElement +------------------------------------- + +:aspect:`Option path` + TYPO3.CMS.Form.prototypes.<prototypeIdentifier>.formElementsDefinition.Hidden.renderingOptions._isHiddenFormElement + +:aspect:`Data type` + bool + +:aspect:`Needed by` + Frontend + +:aspect:`Overwritable within form definition` + Yes + +:aspect:`form editor can write this property into the form definition (for prototype 'standard')` + No + +:aspect:`Mandatory` + No + +:aspect:`Default value (for prototype 'standard')` + .. code-block:: yaml + :linenos: + :emphasize-lines: 3 + + Hidden: + renderingOptions: + _isHiddenFormElement: true + +:aspect:`Description` + Internal control setting to define that the form element is not visible within the summary page and emails. \ No newline at end of file diff --git a/typo3/sysext/form/Documentation/Config/prototypes/formElementsDefinition/formElementTypes/Honeypot/renderingOptions/_isHiddenFormElement.rst b/typo3/sysext/form/Documentation/Config/prototypes/formElementsDefinition/formElementTypes/Honeypot/renderingOptions/_isHiddenFormElement.rst new file mode 100644 index 0000000000000000000000000000000000000000..0c7cd5bbde9f1544ce6ce5c884de0ed39e2a9ffa --- /dev/null +++ b/typo3/sysext/form/Documentation/Config/prototypes/formElementsDefinition/formElementTypes/Honeypot/renderingOptions/_isHiddenFormElement.rst @@ -0,0 +1,32 @@ +renderingOptions._isHiddenFormElement +------------------------------------- + +:aspect:`Option path` + TYPO3.CMS.Form.prototypes.<prototypeIdentifier>.formElementsDefinition.Honeypot.renderingOptions._isHiddenFormElement + +:aspect:`Data type` + bool + +:aspect:`Needed by` + Frontend + +:aspect:`Overwritable within form definition` + Yes + +:aspect:`form editor can write this property into the form definition (for prototype 'standard')` + No + +:aspect:`Mandatory` + No + +:aspect:`Default value (for prototype 'standard')` + .. code-block:: yaml + :linenos: + :emphasize-lines: 3 + + Honeypot: + renderingOptions: + _isHiddenFormElement: true + +:aspect:`Description` + Internal control setting to define that the form element is not visible within the summary page and emails. \ No newline at end of file