-
Notifications
You must be signed in to change notification settings - Fork 653
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
Conditional Required in Schema form #939
Comments
Namaste @sonikritika569 , |
@sonikritika569 you can do this using the calculate add-on to set a value which you then add to the condition on all fields which you want to show to make them show. |
@sonikritika569 try to check the example "Hack: Conditional required" in the examples page http://schemaform.io/examples/bootstrap-example.html. Basically, for each conditionally required field you have two versions of it, with the same key. @Anthropic do you think it would be easier to edit the current "required" schema key in order to support an array of objects? In each of them we would specify the key of the field and a condition that make it required. Thank You |
@brunodymios the required property of the schema is defined by the json-schema standard. I am looking at adding in a rule processing capability in future that can masse-update required, visible and disabled states for fields based on rules. but it could be a long time coming. |
@Anthropic Thank You. |
I have to handle a scenario where I have some fields in my form if any of them is filled other all fields become required.
Is there any way by which we can mark conditional Required in such scenario?
The text was updated successfully, but these errors were encountered: