How can I uncheck box 1, box 2 and box 3 if request A is checked. I tried the if-then method on it to uncheck box 1 and 2 if request A is unchecked, nothing happened
Initial state

-
User select Request A

-
User select Box 1 and box 2

-
User decide not to go with Request A and unchecked it.

-
Upon form submission, box 1 and 2 is still checked.

schema.json
{
"type": "object",
"properties": {
"checkboxes": {
"title": "Select Option",
"type": "object",
"properties": {
"requestA": {
"type": "boolean"
},
"box1": {
"type": "boolean"
},
"box2": {
"type": "boolean"
},
"box3": {
"type": "boolean"
}
},
"if": {
"properties": {
"requestA": {
"const": false
}
}
},
"then": {
"properties": {
"box1": {
"const": false
}
}
}
}
}
}
uiSchema.json
{
"type": "Group",
"label": "Form",
"elements": [
{
"type": "VerticalLayout",
"elements": [
{
"type": "Control",
"scope": "#/properties/checkboxes/properties/requestA"
},
{
"type": "VerticalLayout",
"elements": [
{
"type": "Control",
"scope": "#/properties/checkboxes/properties/box1"
},
{
"type": "Control",
"scope": "#/properties/checkboxes/properties/box2"
},
{
"type": "Control",
"scope": "#/properties/checkboxes/properties/box3"
}
],
"rule": {
"effect": "SHOW",
"condition": {
"scope": "#properties/checkboxes/properties/requestA",
"schema": {
"const": true
}
}
}
}
]
}
]
}