react-jsonschema-form icon indicating copy to clipboard operation
react-jsonschema-form copied to clipboard

How to add a hidden 'comment' field to the formData?

Open MatinF opened this issue 2 years ago • 4 comments

Prerequisites

What theme are you using?

core

What is your question?

We have a use case as follows:

  1. We have different product variants that use different JSON Rule Schema files to generate their Configuration Files (formData)

  2. 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?

MatinF avatar Jan 10 '23 12:01 MatinF