Hide textbox in a repeater if there is a empty data

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?

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