Details
-
Bug
-
Resolution: Fixed
-
Neutral
-
6.2.8
-
None
-
-
Empty show more show less
-
UI FW 28
-
3
Description
Minimum sample:
showImage:
$type: switchableField
field:
$type: comboBoxField
defaultValue: false
datasource:
$type: optionListDatasource
options:
- name: false
value: false
- name: true
value: true
Expected: Default value is shown on initial dialog opening
Reality: Default value not working. It must be alphanumeric, as the documentation states here: https://documentation.magnolia-cms.com/display/DOCS62/Field+definition.
However, this is a pity, as often times switchable fields and select fields in our code base have true/false values.
Developer notes
A] explicitly mention in DOCu that boolean/number values has to be closed in apostrophes.
B] Fix in the code
C] Use checkbox in such case (might be not possible)?
Checklists
Acceptance criteria