# Allow empty values with custom value lists not honored

**URL:** <https://forum.servoy.com/t/allow-empty-values-with-custom-value-lists-not-honored/4997>\
**Category:** Classic Servoy\
**Created:** [October 31, 2005, 2:30pm UTC](https://forum.servoy.com/t/allow-empty-values-with-custom-value-lists-not-honored/4997 "2005-10-31T14:30:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [October 31, 2005, 2:30pm UTC](https://forum.servoy.com/t/allow-empty-values-with-custom-value-lists-not-honored/4997/1 "2005-10-31T14:30:46Z")

</div>

Hello,

if I create a value list using application.setValueListItems() the “allow empty values” property of the value list is not honored. I know I can add a null entry, but shouldn’t Servoy take care of that?

Is it expected behaviour that we have to add the empty value ourselves?

Thanks  
Patrick

---

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [October 31, 2005, 5:21pm UTC](https://forum.servoy.com/t/allow-empty-values-with-custom-value-lists-not-honored/4997/2 "2005-10-31T17:21:27Z")

</div>

Yes, it is expected, (I have asked this before) because you use the setValueListItems, YOU have to set the null also!

---

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [October 31, 2005, 5:30pm UTC](https://forum.servoy.com/t/allow-empty-values-with-custom-value-lists-not-honored/4997/3 "2005-10-31T17:30:43Z")

</div>

Thanks.
