Hi,
A boolean value is defined like so:
{
"name": "isPrioOne",
"properties": {
"fieldType": "Boolean",
"editor": "Checkbox",
"label": "Priority 1",
},
"partitioning": "invariant"
},
This results in an checkbox that is not false
or true
, which might be desired. But when I change the Default Value to False (inside the Field Settings) the changes are not reflected in the Json section. When I change the Default Value to True, the changes are reflected, like so:
{
"name": "isPrioOne",
"properties": {
"fieldType": "Boolean",
"editor": "Checkbox",
"defaultValue": true,
"label": "Priority 1",
},
"partitioning": "invariant"
},
So when I have the Default Value set to False, I would like to see the Json like so:
{
"name": "isPrioOne",
"properties": {
"fieldType": "Boolean",
"editor": "Checkbox",
"defaultValue": false,
"label": "Priority 1",
},
"partitioning": "invariant"
},
Currently doing this manually in the JSON file does not change the Field Settings, it keeps to neither False or True:
It is important because the API will not provide a data
property isPrioOne
when it is not checked in the content.