#106901Form Variants: condition doesn’t work anymore
Description
The following condition worked without any issue in the past but now it doesn’t (maybe because of a TYPO3 update 11 -> 12 or 10 -> 11 or a minor update):
defaultValue: ''
type: Text
identifier: firstname
label: Vorname
properties:
fluidAdditionalAttributes:
required: required
variants:
-
identifier: language-variant-1
condition: 'siteLanguage("locale") == "en_GB.UTF-8"'
label: 'First name'
validators:
-
identifier: NotEmpty
This is exactly the same like in the documentation example, so it should work:
https://docs.typo3.org/permalink/typo3-cms-form:concepts-variants-examples-validation
TYPO3 12.4.32