Issue Bug Closed

#106901Form Variants: condition doesn’t work anymore

Bernhard Eckl 06/18/25, 09:38 updated 12/02/25, 14:21

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

Reviews 3