-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Show all options in an AnyOf or OneOf when printing #1348
Comments
@epicfaace thanks, so if I override the select dropdown as per https://codesandbox.io/embed/6wxv10mz2k can I then force all of the options to show at once? In the example above |
Hmm, I see what you're asking -- you want all the inputs to show at once, right? Right now we don't support that, unless you create your own custom field and then set |
Thanks @epicfaace for the info - I tried to override the
But it isn't being picked up and used, the JsonSchemaForm is continuing to use the old My custom OneOfField is attached, based on the existing: Any pointers to what I am doing wrong to override it? |
@nathfy not sure, perhaps it has something to do with how you are importing |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please leave a comment if this is still an issue for you. Thank you. |
Prerequisites
Description
We are using the project to show a web form as well as printing to pdf for paper use. For the printed version we would like to show all the options in a
oneOf
/anyOf
section. As far as I can see this would mean overriding theMultiSchemaField.js
(https://github.com/mozilla-services/react-jsonschema-form/blob/c5e8899701279a2ab1ac75551824ff24b8d187a4/src/components/fields/MultiSchemaField.js) field to show all the options passed to it.Or maybe replace the Field template do it there.
See the
OneOf
andAnyOf
on the playground, and then imagine that printed to pdf with all the options listed one under the other... https://mozilla-services.github.io/react-jsonschema-form/Anyone got any pointers on how to sort it?
Steps to Reproduce
see description
Expected behavior
see description
Actual behavior
see description
Version
Latest
The text was updated successfully, but these errors were encountered: