react-jsonschema-form
react-jsonschema-form copied to clipboard
How to add a hidden 'comment' field to the formData?
Prerequisites
- [X] I have read the documentation
What theme are you using?
core
What is your question?
We have a use case as follows:
-
We have different product variants that use different JSON Rule Schema files to generate their Configuration Files (formData)
-
When a user loads a Configuration File in our editor from device type A, the editor should automatically load Rule Schema A
In order to achieve the above, we are currently looking for certain fields in the loaded formData - but that is not very scalable or robust. Instead, we'd prefer to add a 'variant identification field' in the formData/Schema. This field should not be displayed in the front-end (regardless of UIschema) and is purely for internal purposes - like a comment field.
Is this possible to achieve in rjsf?