# Perform a search using Enter Key

**URL:** <https://forum.servoy.com/t/perform-a-search-using-enter-key/17753>\
**Category:** Classic Servoy\
**Created:** [January 24, 2014, 3:46pm UTC](https://forum.servoy.com/t/perform-a-search-using-enter-key/17753 "2014-01-24T15:46:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![juan.cristobo](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@juan.cristobo](https://forum.servoy.com/u/juan.cristobo)\
**Post date:** [January 24, 2014, 3:46pm UTC](https://forum.servoy.com/t/perform-a-search-using-enter-key/17753/1 "2014-01-24T15:46:54Z")

</div>

In web client I put a button to enter find mode. When the user wants to perform the search, he has to click a button, but i’d like to use Enter key (as in smart client). Is it possible?

---

<div class="post-metadata">

**Author:** ![grahamg](https://avatars.discourse-cdn.com/v4/letter/g/a4c791/32.png) [@grahamg](https://forum.servoy.com/u/grahamg)\
**Post date:** [January 24, 2014, 8:40pm UTC](https://forum.servoy.com/t/perform-a-search-using-enter-key/17753/2 "2014-01-24T20:40:08Z")

</div>

Juan

Attach the OnAction function that is linked to your button to the Search Input field and it will work in WebClient. You can also link your OnAction function to onDataChange on a Combobox - although this can confuse users if they are not expecting it.

---

<div class="post-metadata">

**Author:** ![juan.cristobo](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@juan.cristobo](https://forum.servoy.com/u/juan.cristobo)\
**Post date:** [January 27, 2014, 9:02am UTC](https://forum.servoy.com/t/perform-a-search-using-enter-key/17753/3 "2014-01-27T09:02:59Z")

</div>

Thanks! I’ll try it.
