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

Required one of Fields #2525

Closed
phungne opened this issue Aug 26, 2021 · 2 comments
Closed

Required one of Fields #2525

phungne opened this issue Aug 26, 2021 · 2 comments

Comments

@phungne
Copy link

phungne commented Aug 26, 2021

Prerequisites

Can we config like that?

{ "properties": { "A": {}, "B": {} }, "anyOf": [{ "required" : ["A"] }, { "required" : ["B"] }] }

Description

  • I wanna required both fields A and B if user not input both
  • And if user input field A or input field B=> validate success
@epicfaace
Copy link
Member

epicfaace commented Aug 26, 2021 via email

@newt10
Copy link
Collaborator

newt10 commented Sep 6, 2021

Feel free to post this on the rjsf discord server #2417 . I am closing this as not an issue. Please let us know if you still need help here.

@newt10 newt10 closed this as completed Sep 6, 2021
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