Display fields based on the value selected from the dropdown #4036
Unanswered
Sahith-8055
asked this question in
Q&A
Replies: 1 comment
-
I think what you are looking for is https://rjsf-team.github.io/react-jsonschema-form/docs/json-schema/dependencies#dynamic |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Say, I have a dropdown (A). In the dropdown, I would like to have two fields 1 & 2 as options. If the selected value is 1, I would like to showcase two string fields B & C. In a similar manner, if the selected value is 2, I would like to showcase D & E which are string fields. The fields which would appear after the selection of the dropdown option should be hidden initially.
I had tried both the options of oneOf and allOf but to no avail. I tried exploring the Playground but I couldn't get any result close to my use-case. Any suggestions / pointers on how to move ahead with the above said scenario? Thanks in advance!
Below are the references to what I'm trying to ask in the question -
Beta Was this translation helpful? Give feedback.
All reactions