question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

visibleIf inside array

See original GitHub issue

is it possible to do something like:

"siblings": {
    "type": "array",
    "description": "Siblings in higher education",
    "items": {
        "type": "object",
        "properties": {
            "lastName": {
                "type": "string",
                "description": "Last name",
                "minLength": 2,
                "maxLength": 30
            },
            "firstName": {
                "type": "string",
                "description": "First name",
                "minLength": 2,
                "maxLength": 30
            },
            "hasDegree": {
                "type": "boolean",
                "default": false,
            },
            "degree": {
                "type": "string",
                "widget": "select",
                "oneOf": [ {
                    "enum": ["L1"],
                    "description": "Licence 1"
                }, {
                    "enum": ["L2"],
                    "description": "Licence 2"
                }, {
                    "enum": ["L3"],
                    "description": "Licence 3"
                }, {
                    "enum": ["M1"],
                    "description": "Master 1"
                }, {
                    "enum": ["M2"],
                    "description": "Master 2"
                }],
                "description": "Academic degree (current year)",
                "default": "L1",
                "visibleIf": {
                    "siblings[$index]/hasDegree": [true]
                },
            }
        }
    }
}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ebrehaultcommented, Jun 6, 2017
1reaction
i-am-drorcommented, Apr 20, 2017

it’s not working

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ngx Schema Form Template Visibleif Array Item - StackBlitz
Example ngx-schema-form custom widgets. Used for references to issues of ngx-schema-form https://github.com/guillotinaweb/ngx-schema-form/issues/308.
Read more >
Issue with visibleif: check if value exists in any row of a column ...
We have got this matrix dynamix rows questions : { ... Issue with visibleif: check if value exists in any row of a...
Read more >
Check if element is visible in DOM - javascript - Stack Overflow
My version: var isVisible = el => (r => r.width && r.height)(el.getBoundingClientRect()); . Then I can filter arrays of elements in the following...
Read more >
Conditional visibility, Reactjs Survey Library Example
Matrix Table Questions. Single-Selection Matrix · Matrix Rubric ... Conditions and Triggers. VisibleIf ... Show/Hide rows in matrix dropdown question.
Read more >
Unity Products:Amplify Shader Editor/Global Array
If toggled on, creates a multi-dimensional array/array of arrays. Off. Index, Position on the array to be accessed. Only visible if the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found