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

i want to add uischema for n times child properties of formschema.

Open gdhelp03 opened this issue 1 year ago • 2 comments

Prerequisites

What theme are you using?

core

Is your feature request related to a problem? Please describe.

formschema:{
  "title": "A list of tasks",
  "type": "object",
  "properties": {
    "tasklist": {
      "type": "array",
      "title": "Addnewtask",
      "items": {
        "type": "object",
        "title": "New Task",
        "properties": {
          "selectTask": {
            "type": "object",
            "title": "Enter New Task Detail",
            "anyOf": [
              {
                "title": "Text",
                "type": "object",
                "properties": {
                  "TextField": {
                    "type": "string",
                    "title": "TEXT",
                    "default": "TEXT",
                    "readOnly": true
                  }
                }
              },
              {
                "title": "Text",
                "type": "object",
                "properties": {
                  "TextField": {
                    "type": "string",
                    "title": "TEXT",
                    "default": "TEXT",
                    "readOnly": true,
                    "hidden": true
                  }
                }
              }
            ]
          }
        }
      }
    }
  }
}

uiSchema:{
  "tasklist": {
    "selectTask": {
      "TextField": "hidden"
    }
  }
}

Describe the solution you'd like

how to use uischema to hide child input controls

Describe alternatives you've considered

No response

gdhelp03 avatar May 21 '23 23:05 gdhelp03