Hi all,
I’m using a form component that contains a list of checkboxes. When a checkbox is selected, I expect its associated value to be returned in the widget’s data list.
Instead, the data list only returns true or false, which appears to correspond to the index or selected state of each checkbox rather than its configured value.
Is it not suppose to just return a list of values based on what I selected ie,
['Administrator'] or ['Administrator','Operator']
{
"id": "roles",
"type": "checkbox",
"checkbox": {
"type": "boolean",
"options": [
{
"text": "Administrator",
"value": "Administrator",
"triState": false
},
{
"text": "Operator",
"value": "Operator",
"triState": false
},
{
"text": "Supervisor",
"value": "Supervisor",
"triState": false
},
{
"text": "test",
"value": "test",
"triState": false
}
],
"layout": "row",
"align": "center",
"justify": "start",
"textPosition": "right",
"checkedIcon": {
"path": "material/check_box",
"color": {
"enabled": "#5b9cf6",
"disabled": ""
}
},
"uncheckedIcon": {
"path": "material/check_box_outline_blank",
"color": {
"enabled": "",
"disabled": ""
}
},
"validation": {
"constraints": {
"required": {
"enabled": false
}
},
"style": {
"classes": ""
}
},
"style": {
"classes": "keycloak-role-chips"
},
"optionStyle": {
"classes": "keycloak-role-chip"
}
},
"visible": true,
"enabled": true,
"layout": "column",
"label": {
"text": "Roles",
"style": {
"classes": "keycloak-label"
}
},
"info": {
"text": "",
"type": "caption"
},
"tabIndex": 7,
"style": {
"classes": "keycloak-form-group"
}
}



