cern-sis / react-formule

User-friendly, extensible form builder for React based on JSON Schema and RJSF
https://cern-sis.github.io/react-formule/
MIT License
7 stars 3 forks source link

feat(form): add option to hide field labels #47

Closed miguelgrc closed 1 week ago

miguelgrc commented 1 month ago

Closes #15

A problem with this solution is that, since the default value of the switch is true, when opening the UI Settings tab the field preview is going to reset. Also, if we switch it off and on, "ui:label": true will be added to the uiSchema, which is useless. This should be taken care of in a more general way in another task in which we run a cleanup function to get rid of unnecessary (default) information in the schemas (by comparing with the jsonschema specification defaults) (see #48).