Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi dependence dynamic form #2493

Closed
2 tasks
MagicBoBo opened this issue Jul 29, 2021 · 2 comments
Closed
2 tasks

Multi dependence dynamic form #2493

MagicBoBo opened this issue Jul 29, 2021 · 2 comments

Comments

@MagicBoBo
Copy link

Prerequisites

  • I have read the documentation;
  • I have read the dynamic part and i see that rjsf use dependence and one of to create a dynamic form, but the dependence is only one key

Description

Can i use rfjs to create a Multi dependence dynamic form ? It means a dynamic form depended on at least two keys.

@Juansasa
Copy link
Contributor

Juansasa commented Aug 6, 2021

Have you looked into If, then, else ?
When combine with anyOf, allOf and oneOf this shouldn't be a problem.
My PR #2506 have an example of this. Take a look if this is what you mean

@epicfaace
Copy link
Member

Yeah, that PR could do it, or you could also do this with oneOf / anyOf / allOf. See https://json-schema.org/understanding-json-schema/reference/combining.html for a reference of the latter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants