react-jsonschema-form
react-jsonschema-form copied to clipboard
modify default with dependencies
Prerequisites
- [X] I have read the documentation
What theme are you using?
material-ui
What is your question?
I have a form where one field called filter is an enum of strings: r,g,b. Depending on the value chosen here, I want the default value of another field called iterations to change. Ideally, it would be great if changing the filter (and therefore the default for iterations could overwrite whatever value has been set there.
Any idea how to do that, or if it's even possible? Whatever schema I try, the default doesn't seem to change with the dependency.
@Theodlz Can you create a playground for your schema to show us what you are experiencing?