Project

General

Profile

Actions

Feature #92330

open

Translation of defaultValue for hidden fields not working

Added by Henrik Ziegenhain over 3 years ago. Updated almost 2 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2020-09-17
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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!


Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Epic #97495: Introduce a UI for translation handling in EXT:formNew2022-04-28

Actions
Actions #1

Updated by Björn Jacob over 2 years ago

  • Sprint Focus set to Remote Sprint
Actions #2

Updated by Ralf Zimmermann about 2 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.

Actions #3

Updated by Björn Jacob almost 2 years ago

  • Related to Epic #97495: Introduce a UI for translation handling in EXT:form added
Actions #4

Updated by Björn Jacob almost 2 years ago

  • Sprint Focus deleted (Remote Sprint)
Actions

Also available in: Atom PDF