# Empty value within dropdown for array type oneOf

**URL:** <https://jsonforms.discourse.group/t/empty-value-within-dropdown-for-array-type-oneof/105>\
**Category:** General\
**Created:** [March 3, 2021, 10:38am UTC](https://jsonforms.discourse.group/t/empty-value-within-dropdown-for-array-type-oneof/105 "2021-03-03T10:38:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![discobot](https://yyz2.discourse-cdn.com/free1/user_avatar/jsonforms.discourse.group/discobot/32/3_2.png) [@discobot](https://jsonforms.discourse.group/u/discobot)\
**Post date:** [March 3, 2021, 10:38am UTC](https://jsonforms.discourse.group/t/empty-value-within-dropdown-for-array-type-oneof/105/1 "2021-03-03T10:38:16Z")

</div>

When I specify a schema with a set of oneOf consts & titles, I expected the dropdown to just display those provided options, not an additional one with an empty entry.

How can i prevent that entry from showing please?

_[[original thread](https://spectrum.chat/jsonforms/general/empty-value-within-dropdown-for-array-type-oneof~137128e9-5e74-46e0-822b-1d0f7c95ac31) by Simon Robinson]_

---

<div class="post-metadata">

**Author:** ![sdirix](https://yyz2.discourse-cdn.com/free1/user_avatar/jsonforms.discourse.group/sdirix/32/1073_2.png) [@sdirix](https://jsonforms.discourse.group/u/sdirix)\
**Post date:** [March 3, 2021, 7:12pm UTC](https://jsonforms.discourse.group/t/empty-value-within-dropdown-for-array-type-oneof/105/2 "2021-03-03T19:12:33Z")

</div>

Hi @simon-robinson(simon-robinson), the empty option is currently hard coded in the renderer. Therefore you’ll need to register a custom renderer which does not add this empty option. Note that you’ll also need to handle the edge case when there is no value in your data object.

If it’s enough for you to just not start with the empty value selected, you could just let Ajv generate a default value for you, see our [FAQ](https://jsonforms.io/faq#how-can-i-use-default-values-within-json-forms) for more information.

---

<div class="post-metadata">

**Author:** ![discobot](https://yyz2.discourse-cdn.com/free1/user_avatar/jsonforms.discourse.group/discobot/32/3_2.png) [@discobot](https://jsonforms.discourse.group/u/discobot)\
**Post date:** [March 4, 2021, 3:27pm UTC](https://jsonforms.discourse.group/t/empty-value-within-dropdown-for-array-type-oneof/105/3 "2021-03-04T15:27:43Z")

</div>

_[Simon Robinson]_

Thanks very much for that - ok makes sense.
