Feature #92330
openTranslation of defaultValue for hidden fields not working
0%
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"
Translating the defaultValue of <my-hidden-field> fails.
Whether "element.my-hidden-field.properties.value" nor "element.my-hidden-field.properties.defaultValue" is working.
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!
Updated by Ralf Zimmermann almost 3 years ago
- Tracker changed from Bug to Feature
- TYPO3 Version deleted (
10) - PHP Version deleted (
7.2)
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.
Updated by Björn Jacob over 2 years ago
- Related to Epic #97495: Introduce a UI for translation handling in EXT:form added