react-jsonschema-form icon indicating copy to clipboard operation
react-jsonschema-form copied to clipboard

modify default with dependencies

Open Theodlz opened this issue 1 year ago • 1 comments

Prerequisites

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 avatar Jan 23 '24 03:01 Theodlz

@Theodlz Can you create a playground for your schema to show us what you are experiencing?

heath-freenome avatar Jan 26 '24 20:01 heath-freenome