guillotinaweb / ngx-schema-form

HTML form generation based on JSON Schema
MIT License
485 stars 173 forks source link

VisibleIf - Negative condition case #367

Closed daniele-pecora closed 3 years ago

daniele-pecora commented 3 years ago

A negative condition is not working with this example

{
  "properties": {
    "consistent": {
      "type": "boolean",
      "widget": "checkbox"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "description": "Name",
      "title": "Name",
      "visibleIf": {
        "consistent": false
      }
    }
  }
}

But works when using an expression like "$EXP$ !target.value"

See example at Stackblitz