#92330Translation of defaultValue for hidden fields not working
Description
Assumption:
- In your form you have some fields of type “hidden” and you give `em a defaultValue.
- multilanguage form
When dealing with translations, you may also want to localize your defaultValue of your hidden fields.
Common sense is to handle this with xliff files under the key “element.<my-field>.properties.label” for the label property of your field “my-field”</my-field>
Translating the defaultValue of <my-hidden-field> fails.<br>Whether “element.my-hidden-field.properties.value” nor “element.my-hidden-field.properties.defaultValue” is working.</my-hidden-field>
What is the correct syntax to address a hidden field value?
I am able to set an additional attribute like data-text with fluidAdditionalAttributes, and it works like I want it to. Like this I could set the hidden value via JavaScript. But this is a nasty workaround!
Reviews 1
Related issues 1
History 610
-
Björn Jacob changed Sprint Focus Remote Sprint <span data-processor="relativetime" data-value="2021-08-06T13:07:13+00:00" > 08/06/21, 13:07 </span>
-
Ralf Zimmermann commented and changed tracker
BugFeature TYPO3 Version10PHP Version7.2<span data-processor="relativetime" data-value="2022-02-23T20:58:37+00:00" > 02/23/22, 20:58 </span> -
Björn Jacob changed Related to #97495 <span data-processor="relativetime" data-value="2022-04-28T06:25:59+00:00" > 04/28/22, 06:25 </span>
-
Björn Jacob changed Sprint Focus
Remote Sprint<span data-processor="relativetime" data-value="2022-04-28T06:27:27+00:00" > 04/28/22, 06:27 </span> -
Gerrit Code Review pushed patch set 4 for main to change 93016 status
NewUnder Review <span data-processor="relativetime" data-value="2026-03-03T12:49:21+00:00" > 03/03/26, 12:49 </span> -
Gerrit Code Review pushed patch set 5 for main to change 93016 <span data-processor="relativetime" data-value="2026-03-10T15:03:19+00:00" > 03/10/26, 15:03 </span>
-
Gerrit Code Review pushed patch set 6 for main to change 93016 <span data-processor="relativetime" data-value="2026-03-16T14:49:32+00:00" > 03/16/26, 14:49 </span>
-
Gerrit Code Review pushed patch set 7 for main to change 93016 <span data-processor="relativetime" data-value="2026-03-16T19:21:28+00:00" > 03/16/26, 19:21 </span>
-
Josua Vogel commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-03-17T05:55:09+00:00" > 03/17/26, 05:55 </span>Applied in changeset commit:cad75b3665b581ef85e24da06fa0bb907a7f1d4c.
-
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2026-03-31T09:00:31+00:00" > 03/31/26, 09:00 </span>
The defaultValue is not translated by default, regardless of the form element type.
Since this was not intended to be supported till now, this is more of a feature request than a bug.
We are currently working on a concept to make forms localizable like the other content elements.
The acceptance criteria of this issue are clearly a part of it and will be supported in the future as soon as the concept is finalized and implemented.