JSONForm v3.2.1 conditional required field

Hi @devkram,

This is the JSON Schema you want:

{
  "type": "object",
  "properties": {
    "opts": {
      "type": "boolean",
      "oneOf": [
        { "title": "Yes", "const": true },
        { "title": "No", "const": false }
      ]
    },
    "field1": {
      "type": "string"
    }
  },
  "required": ["opts"],
  "if": {
    "properties": { "opts": { "const": false } }
  },
  "then": {
    "required": ["field1"]
  }
}

The dynamic require validation will work and show in the UI, however we do not support the required flag for dynamic requires. See here for more information Any way to designate if a conditionally-required field is required?