rjsf-team / react-jsonschema-form

A React component for building Web forms from JSON Schema.

Home Page:https://rjsf-team.github.io/react-jsonschema-form/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adding a new field in between based upon selected value from dropdown

roma13121990 opened this issue · comments

Hi,

I need to add a new field dynamically in between, once a specific value from the dropdown(existing field in the form) is selected.
Are there any such examples.Could you please guide me.

I have forked the above fiddle- https://jsfiddle.net/p1450256/6qrLwjkb/

The task which I need to accomplish is that on selecting "Basic" from role dropdown, another new field should be added just below the role dropdown.

And there should be a state maintained at the same time as we are doing this inside an array.

This sounds like #52, which we don't support right now (although a PR would be interesting).