# Hide textbox in a repeater if there is a empty data

**URL:** <https://forum.wixstudio.com/t/hide-textbox-in-a-repeater-if-there-is-a-empty-data/39683>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [June 23, 2021, 1:50pm UTC](https://forum.wixstudio.com/t/hide-textbox-in-a-repeater-if-there-is-a-empty-data/39683 "2021-06-23T13:50:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![heinerreber](https://avatars.discourse-cdn.com/v4/letter/h/cab0a1/32.png) [@heinerreber](https://forum.wixstudio.com/u/heinerreber)\
**Post date:** [June 23, 2021, 1:50pm UTC](https://forum.wixstudio.com/t/hide-textbox-in-a-repeater-if-there-is-a-empty-data/39683/1 "2021-06-23T13:50:09Z")

</div>

Hello together,  
I have the following problem. I have a repeater with multiple text fields on it.  
Some of the text fields are linked to a dataset (numeric fields). Those fields can be empty.  
I want to show every container of the repeater, but if the data of those text fields are empty for this container, I want to hide it.

For example: #texth1 is linked to a data field, the placeholde for #texth1 is “S1”. If I try to hide the text field in case of “S1” ( empty data entry) also the filled entries get hidden.

$w ( ‘#dataset1’ ). setFilter ( wixData . filter (). eq ( “heimteam” , firstItem . \_id ));  
**if** ( $w ( ‘#texth1’ ). text === “S1” ){  
$w ( ‘#texth1’ ). hide() ;  
}

Can you help me to hide just the empty ones?

---

<div class="post-metadata">

**Author:** ![giri-zano](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/giri-zano/32/80469_2.png) [@giri-zano](https://forum.wixstudio.com/u/giri-zano)\
**Post date:** [June 23, 2021, 3:23pm UTC](https://forum.wixstudio.com/t/hide-textbox-in-a-repeater-if-there-is-a-empty-data/39683/2 "2021-06-23T15:23:00Z")

</div>

You are having a problem with “scope”. You should, in this case not use $w but $item in the $w ( ‘#repeaterxx’ ). onItemReady. See: [https://www.wix.com/velo/reference/$w/repeater/introduction](https://www.wix.com/velo/reference/$w/repeater/introduction)
