-
-
Notifications
You must be signed in to change notification settings - Fork 245
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
How to customize field choice ? #517
Comments
Hi @Chnapy. It actually is working as you've described. By works, I mean that the check: {
type: 'array',
items: {
type: 'string',
enum: [
'choice 1',
'choice 2'
],
uniforms: {
checkboxes: true
}
},
uniqueItems: true
} The other topic is the externalnalization of UI props. In general, you can do it in your project: merging or enhancing schemas is a way to go. If you have a more complex case: create your own schema bridge, probably based on an already existing one. |
OK, now I got it. You can go with |
Thank you it works ! |
@radekmie I was wondering if there is any doc on |
Not really. Noted for #259. |
Hello! Has this been worked on by any chance? I'm using JSON Schema & AntD and trying to do the following with a group of checkboxes:
I need to have the submitted values to contain all impacts as true or false, hence using the Any suggestions, etc? Many thanks! |
Hi @delyanr. Using |
Hi @radekmie. Basically, I would like it to look like the below (if you plug into the uniforms playground):
However, I don't believe using
rather than something that (i) shows
Hope this makes sense. |
Yes, it does make sense. In this case, I can suggest either making a custom component for it (just to make the data format "right") or transform the result array manually during submit ( |
@radekmie I'm trying to use the |
Yes @delyanr, that's definitely a bug (a weird one). Please file a new issue for it. |
Hello,
I generate a form from JSON Schema and I want to choose which field to use for an attribute.
For example, in my JSON Schema I have this attribute
check
:It render this (antd style) :
Instead that, I want checkboxes.
I know I can add this in the JSON:
But it doesn't work.
And I don't like to add uniforms properties in my JSON Schema, can I define an "UISchema" in an other file ?
I'm searching an equivalent of react-jsonschema-form for uischema, something like this:
Thank you 👍
The text was updated successfully, but these errors were encountered: