# Hide/Show (rules) property not working inside array nested level

**URL:** <https://jsonforms.discourse.group/t/hide-show-rules-property-not-working-inside-array-nested-level/1575>\
**Category:** General\
**Created:** [July 5, 2023, 12:27pm UTC](https://jsonforms.discourse.group/t/hide-show-rules-property-not-working-inside-array-nested-level/1575 "2023-07-05T12:27:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![prince\_123\_kumar](https://avatars.discourse-cdn.com/v4/letter/p/8e7dd6/32.png) [@prince\_123\_kumar](https://jsonforms.discourse.group/u/prince_123_kumar)\
**Post date:** [July 5, 2023, 12:27pm UTC](https://jsonforms.discourse.group/t/hide-show-rules-property-not-working-inside-array-nested-level/1575/1 "2023-07-05T12:27:04Z")

</div>

Hide/Show (rules) property not working inside array nested level

---

<div class="post-metadata">

**Author:** ![sdirix](https://yyz2.discourse-cdn.com/free1/user_avatar/jsonforms.discourse.group/sdirix/32/1073_2.png) [@sdirix](https://jsonforms.discourse.group/u/sdirix)\
**Post date:** [July 6, 2023, 6:18am UTC](https://jsonforms.discourse.group/t/hide-show-rules-property-not-working-inside-array-nested-level/1575/2 "2023-07-06T06:18:39Z")

</div>

Hi @prince_123_kumar,

Rules should work for nested arrays as they do for all other UI Schema elements. Note that you can’t hide/show/enable/disable array cells because we don’t even support defining rules for them in the UI Schema.

---

<div class="post-metadata">

**Author:** ![prince\_123\_kumar](https://avatars.discourse-cdn.com/v4/letter/p/8e7dd6/32.png) [@prince\_123\_kumar](https://jsonforms.discourse.group/u/prince_123_kumar)\
**Post date:** [July 6, 2023, 6:55am UTC](https://jsonforms.discourse.group/t/hide-show-rules-property-not-working-inside-array-nested-level/1575/3 "2023-07-06T06:55:56Z")

</div>

@sdirix Thanks Stefan for your reply. But i think it’s not working for me… Can you suggest me with a small example.  
I am posting a small code here , i want to HIDE school\_address (which is inside array nested level )on selection of MAK from student dropdown ( which is on top).

---

<div class="post-metadata">

**Author:** ![prince\_123\_kumar](https://avatars.discourse-cdn.com/v4/letter/p/8e7dd6/32.png) [@prince\_123\_kumar](https://jsonforms.discourse.group/u/prince_123_kumar)\
**Post date:** [July 6, 2023, 8:18am UTC](https://jsonforms.discourse.group/t/hide-show-rules-property-not-working-inside-array-nested-level/1575/4 "2023-07-06T08:18:36Z")

</div>

{  
“type”: “object”,  
“properties”: {  
“abcd”: {  
“type”: “string”,  
“description”: “text”  
},  
“student”: {  
“type”: “string”,  
“enum”: [“Mak”, “Jonny”, “Michael”],  
“default”: “Mak”,  
“description”: “”  
},  
“sites”: {  
“type”: “array”,  
“minItems”: 1,  
“items”: {  
“type”: “object”,  
“properties”: {  
“school\_name”: {  
“type”: “string”,  
“description”: “”  
},  
“address”: {  
“type”: “array”,  
“items”: {  
“type”: “object”,  
“properties”: {  
“device\_ip”: {  
“type”: “string”,  
“description”: “”  
},  
“current\_address”: {  
“type”: “object”,  
“properties”: {  
“school\_address”: {  
“type”: “string”,  
“enum”: [“Text”],  
“description”: “”  
}  
}  
}  
}  
}  
}  
}  
}  
}  
}  
}

---

<div class="post-metadata">

**Author:** ![sdirix](https://yyz2.discourse-cdn.com/free1/user_avatar/jsonforms.discourse.group/sdirix/32/1073_2.png) [@sdirix](https://jsonforms.discourse.group/u/sdirix)\
**Post date:** [July 6, 2023, 8:27am UTC](https://jsonforms.discourse.group/t/hide-show-rules-property-not-working-inside-array-nested-level/1575/5 "2023-07-06T08:27:11Z")

</div>

Hi @prince_123_kumar,

Sadly that is not possible with the off-the-shelf renderers at the moment. Currently we only allow to specify scoped UI Schemas for details like objects and arrays. So every `scope` within that detailed UI Schema can only be resolved within the `address` object.

We already had the discussion in issue [#2094](https://github.com/eclipsesource/jsonforms/issues/2094). It would be possible to add support for outside resolving in JSON Forms, it just needs to be implemented.

If you or someone else would like to make a contribution then you are very welcomed.

Note that if you implement custom renderers, then you can of course already support this today.
