Project

General

Profile

Actions

Feature #92330

open

Translation of defaultValue for hidden fields not working

Added by Henrik Ziegenhain about 4 years ago. Updated over 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

Also available in: Atom PDF