# Search Box for data collection connected to Repeater

**URL:** <https://forum.wixstudio.com/t/search-box-for-data-collection-connected-to-repeater/1907>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [October 17, 2018, 10:59am UTC](https://forum.wixstudio.com/t/search-box-for-data-collection-connected-to-repeater/1907 "2018-10-17T10:59:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![brunovasconcelos](https://avatars.discourse-cdn.com/v4/letter/b/838e76/32.png) [@brunovasconcelos](https://forum.wixstudio.com/u/brunovasconcelos)\
**Post date:** [October 17, 2018, 10:59am UTC](https://forum.wixstudio.com/t/search-box-for-data-collection-connected-to-repeater/1907/1 "2018-10-17T10:59:12Z")

</div>

Hi everyone,  
I was using the video tutorial (How to create a Search for Your Database) and some posts in the forum but I still haven’t be able to find whats wrong with the code.

This is the code:

import wixData from “wix-data”;

export function iTitle\_keyPress(event) {  
console.log($w(‘#iTitle’).value)  
filter($w(‘iTitle’).value);  
}

function filter(nome){  
$w(‘#dataset1’).setFilter(wixData.filter().contains(‘nomeTexto’, nome));  
}

When I test the search box in the preview, nothing happens. I can write no errors are retrieved, but the repeater won’t display the relevant info. Just the full database collection.

Thank you in advance for any insight you may have!  
PS - I have almost zero skills in programming. Just following the tutorials.

---

<div class="post-metadata">

**Author:** ![liorwi](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/liorwi/32/6614_2.png) [@liorwi](https://forum.wixstudio.com/u/liorwi)\
**Post date:** [October 17, 2018, 1:54pm UTC](https://forum.wixstudio.com/t/search-box-for-data-collection-connected-to-repeater/1907/2 "2018-10-17T13:54:43Z")

</div>

Hi Bruno,

It seems you are missing an ‘#’ in line 5 when referencing the element’s Id.  
try changing:  
filter($w(‘iTitle’).value)  
to  
filter($w(‘#iTitle’).value)

Best of luck!
