So, I'm trying to hide fields in form using Variants according to this docs:
https://docs.typo3.org/c/typo3/cms-form/master/en-us/I/Concepts/Variants/Index.html
That's my YAML configuration of form definition, with one field that I need to hide with condition, and It's not working at all:`
properties:
options:
Villa: Villa
Fritidshus: Fritidshus
Bostadsratt: Bostadsrätt
type: SingleSelect
identifier: singleselect-4
label: 'Ditt/ert boende'
-
defaultValue: ''
type: Text
identifier: text-9
label: 'Fastighetsbeteckning vid val Villa'
variants:
-
identifier: variant-1
condition: 'formValues["singleselect-4"] == "Bostadsratt"'
renderingOptions:
enabled: false
-`
Aucun commentaire:
Enregistrer un commentaire