You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, I am encountering an issue where I have a toggle. When it is selected, it would display more fields to fill out. However, when the toggle is unselected, the dependent field values are retained.
What can be done to resolve this?
Current Schema:
{
"title": "Visual (Top Level) Schema",
"description": "Settings for individual visualizations",
"type": "object",
"properties": {
"locationGroupSettings": {
"type": "object",
"description": "Settings for the location groups",
"properties": {
"isMultipleLocationGroups": {
"type": "boolean",
"description": "Does this report show data for one locationGroup or multiple locationGroups",
"default": false
},
"include": {
"type": "array",
"description": "List of locationGroups to include",
"items": {
"type": "string"
}
}
},
"if": {
"properties": { "isMultipleLocationGroups": { "const": true } }
},
"then": {
"properties": {
"selectionMin": {
"type": "integer",
"description": "Minimum number of locationGroups to show"
},
"selectionMax": {
"type": "integer",
"description": "Maximum number of locationGroups to show"
}
}
}
}
}
Prerequisites
What theme are you using?
material-ui
What is your question?
Hi,
Currently, I am encountering an issue where I have a toggle. When it is selected, it would display more fields to fill out. However, when the toggle is unselected, the dependent field values are retained.
What can be done to resolve this?
Current Schema:
Updated schema that I have tried:
based on: https://react-jsonschema-form.readthedocs.io/en/v1.8.1/dependencies/
error from above:
The text was updated successfully, but these errors were encountered: