# Visibility in DynamicArray by Row index

**URL:** <https://community.viktor.ai/t/visibility-in-dynamicarray-by-row-index/1838>\
**Category:** Need help? Ask here!\
**Created:** [16 May 2024 16:02 UTC](https://community.viktor.ai/t/visibility-in-dynamicarray-by-row-index/1838 "2024-05-16T16:02:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sams](https://community.viktor.ai/letter_avatar_proxy/v4/letter/s/e79b87/32.png) [@sams](https://community.viktor.ai/u/sams)\
**Post date:** [16 May 2024 16:02 UTC](https://community.viktor.ai/t/visibility-in-dynamicarray-by-row-index/1838/1 "2024-05-16T16:02:50Z")

</div>

Hello,  
I’m wondering if it is possible to make a column only ever visible in the first row of a DynamicArray?

I was thinking of something like this.

first\_row\_visible = DynamicArrayConstraint(‘array\_name’, IsEqual(RowLookup(‘index’), 0))

parametrization.array\_name = DynamicArray()  
parametrization.array\_name.col\_1 = TextField(visible=first\_row\_visible)  
parametrization.array\_name.col\_2 = TextField()

Ideally,  
col\_1 and col\_2 are visible in the first row of the DynamicArray, and only col\_2 is visible in all other rows.

Thank you

---

<div class="post-metadata">

**Author:** ![matthijs](https://community.viktor.ai/user_avatar/community.viktor.ai/matthijs/32/34_2.png) [@matthijs](https://community.viktor.ai/u/matthijs)\
**Post date:** [16 May 2024 16:32 UTC](https://community.viktor.ai/t/visibility-in-dynamicarray-by-row-index/1838/2 "2024-05-16T16:32:27Z")

</div>

Hi @sams , it’s possible to have row dependent visibilities. Here you can find more information in the docs: [User input, fields and buttons - Hide a field | VIKTOR Documentation](https://docs.viktor.ai/docs/create-apps/user-input/hide-field/#using-a-function-1).

Hopefully this helps,  
Matthijs
