I have a context that I want to render a enum value which will have the suggestion value based on another property. Example
- We have 2 properties
aandb - When
aistrue,bcan only be one of:102030(suggestion) - When
aisfalse,bcan only be one of:405060(suggestion)
I wonder if we could add a neweffectbesideHIDESHOWDISABLEENABLE. It is possible?
It could seem like this
{
"type": "Control",
"scope": "#property/B",
"mode": "select",
"rule": {
"effect": "CONDITIONAL_SHOW",
"condition": {
[
{
"scope": "#/properties/A",
"schema": { const: true },
"suggestions": [
"10",
"20",
"30"
]
},
{
"scope": "#/properties/A",
"schema": { const: false },
"suggestions": [
"10",
"20",
"30"
]
},
]
}
}
}