# onFocusGained runs twice

**URL:** <https://forum.servoy.com/t/onfocusgained-runs-twice/20974>\
**Category:** Questions\
**Created:** [March 28, 2023, 2:43pm UTC](https://forum.servoy.com/t/onfocusgained-runs-twice/20974 "2023-03-28T14:43:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![crusca2382](https://avatars.discourse-cdn.com/v4/letter/c/6a8cbe/32.png) [@crusca2382](https://forum.servoy.com/u/crusca2382)\
**Post date:** [March 28, 2023, 2:43pm UTC](https://forum.servoy.com/t/onfocusgained-runs-twice/20974/1 "2023-03-28T14:43:36Z")

</div>

Hello,

Unsing onFocusGained in a Type Ahead field in conjunction with a value list runs the event twice, when you open the list and when you select a value from it. This results in the opposite of one would want to obtain with the first event. Any idea on how to solve this problem?

Thanks,  
Carlo
