I have two properties “select1” and “select2”:
{
"type": "object",
"properties": {
"select1": {
"type": "object",
"title": "Select1",
"oneOf": [
{
"const": {
"name": "select1_option1",
"title": "Select1_Option1"
}
},
{
"const": {
"name": "select1_option2",
"title": "Select1_Option2"
}
}
]
},
"select2": {
"type": "object",
"title": "Select2",
"oneOf": [
{
"const": {
"name": "select2_option1",
"title": "Select2_Option1"
}
},
{
"const": {
"name": "select2_option2",
"title": "Select2_Option2"
}
},
{
"const": {
"name": "select2_option3",
"title": "Select2_Option3"
}
}
]
}
}
}
So I want my “select2” to show only options corresponding to the selection from another select.
e.g. property “select1” is now
{
"name": "select1_option1",
"title": "Select1_Option1"
}
and the select2 can be (and show) only
{
"const": {
"name": "select2_option1",
"title": "Select2_Option1"
}
},
{
"const": {
"name": "select2_option2",
"title": "Select2_Option2"
}
}
but not
{
"const": {
"name": "select2_option3",
"title": "Select2_Option3"
}
}
is there any way to make it work as I want