Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Hello everyone! I am new to react-jsonschema-form and don’t understand the library customization. I want to use my own input fields, checkboxes and other components. I got my input field in the form, BUT with a default label and I can’t find a way to delete it. Will someone explain when I should use templates, fields and widgets?

You must be logged in to vote

RJSF is super customizable, so there are a lot of way to tackle your issue. It's hard to say exactly which one is best for your specific case without looking at your source code.

First, if you just want to hide labels, you can use the label property in the UI Schema to hide them. If you want to hide them for all fields, you can put it in the ui:globalOptions.

If you want to change the layout (or maybe you have duplicate labels appearing, etc.), then you should take a look at the BaseInputTemplate, ObjectFieldTemplate, and potentially check the list of all of the other available templates. I recommend looking at how the different theme packages implement these templates to get an idea of h…

Replies: 1 comment · 1 reply

Comment options

RJSF is super customizable, so there are a lot of way to tackle your issue. It's hard to say exactly which one is best for your specific case without looking at your source code.

First, if you just want to hide labels, you can use the label property in the UI Schema to hide them. If you want to hide them for all fields, you can put it in the ui:globalOptions.

If you want to change the layout (or maybe you have duplicate labels appearing, etc.), then you should take a look at the BaseInputTemplate, ObjectFieldTemplate, and potentially check the list of all of the other available templates. I recommend looking at how the different theme packages implement these templates to get an idea of how they can be used. This doc also explains when to use fields vs templates vs widgets.

You must be logged in to vote
1 reply
@Andrey-Mayanov
Comment options

Thank you so much!

Answer selected by Andrey-Mayanov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.