# TypeAhead field allow only valuelist entries

**URL:** <https://forum.servoy.com/t/typeahead-field-allow-only-valuelist-entries/17762>\
**Category:** Classic Servoy\
**Created:** [January 29, 2014, 4:23pm UTC](https://forum.servoy.com/t/typeahead-field-allow-only-valuelist-entries/17762 "2014-01-29T16:23:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![deezzub](https://avatars.discourse-cdn.com/v4/letter/d/dec6dc/32.png) [@deezzub](https://forum.servoy.com/u/deezzub)\
**Post date:** [January 29, 2014, 4:23pm UTC](https://forum.servoy.com/t/typeahead-field-allow-only-valuelist-entries/17762/1 "2014-01-29T16:23:24Z")

</div>

I have a type ahead field to filter for example vessel names. Is there a way to only allow values that are in the valuelist for vessel names? It should not be possible to add a value that is not in the database. Do I have check it by myself in the onDataChange method?

---

<div class="post-metadata">

**Author:** ![lwjwillemsen](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/lwjwillemsen/32/4987_2.png) [@lwjwillemsen](https://forum.servoy.com/u/lwjwillemsen)\
**Post date:** [January 29, 2014, 6:14pm UTC](https://forum.servoy.com/t/typeahead-field-allow-only-valuelist-entries/17762/2 "2014-01-29T18:14:04Z")

</div>

Hi Sebastian,

The only real value of the dataprovider that is **not** in the vessel table the enduser can  
enter into that dataprovider through UI is the initial real value of that dataprovider.

Above holds for default use of combobox and typeahead.  
With out of the box Servoy use of a typeahead form element endusers can **not** enter new values in the linked valuelist…

So maybe you have to give more info on your case…

Regards,

---

<div class="post-metadata">

**Author:** ![deezzub](https://avatars.discourse-cdn.com/v4/letter/d/dec6dc/32.png) [@deezzub](https://forum.servoy.com/u/deezzub)\
**Post date:** [January 30, 2014, 8:02am UTC](https://forum.servoy.com/t/typeahead-field-allow-only-valuelist-entries/17762/3 "2014-01-30T08:02:45Z")

</div>

Hi Lambert,

you’re absolutely right. My mistake.
