visibleIf inside array
See original GitHub issueis 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:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed by https://github.com/makinacorpus/angular2-schema-form/pull/99 (thanks @thereiskeks 😃 )
it’s not working