Hi,
Im trying to solve my issue with HIDE rule in simple jsonSchema.
JSON SCHEMA:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"component": {
"type": "object",
"properties": {
"class": {
"type": "string"
},
"variant": {
"type": "string",
"enum": ["YES_NO", "ARROW"]
},
"backgroundColor": {
"type": "string"
},
"backgroundColorDark": {
"type": "string"
}
}
},
"title": {
"type": "object",
"properties": {
"text": {
"type": "string"
},
"textColor": {
"type": "string"
},
"textColorDark": {
"type": "string"
}
},
"required": ["text"]
},
"links": {
"type": "object",
"properties": {
"noLink": {
"type": "string"
},
"noLinkImageAlt": {
"type": "string"
},
"yesLink": {
"type": "string"
},
"yesLinkImageAlt": {
"type": "string"
},
"arrowLink": {
"type": "string"
},
"arrowLinkImageAlt": {
"type": "string"
}
}
}
},
"required": ["component", "title", "links"]
}
UI SCHEMA:
{
"type": "VerticalLayout",
"elements": [
{
"type": "Group",
"elements": [
{
"type": "Control",
"scope": "#/properties/component/properties/variant"
},
{
"type": "Control",
"scope": "#/properties/links/properties/arrowLink",
"rule": {
"effect": "HIDE",
"condition": {
"scope": "#/properties/component/properties/variant",
"schema": { "enum": ["YES_NO"] }
}
}
}
]
}
]
}
The goal is to HIDE arrowLink when is selected YES_NO variant. I was reading your docs, these topics but I have not found any suitable solution.
Please if you could help me what is wrong with my rule in UI schema.
Thank you a lot!
Adam