# Custom State with List of "Types"

**URL:** <https://forum.bubble.io/t/custom-state-with-list-of-types/145098>\
**Category:** Need help\
**Created:** [April 7, 2021, 2:39am UTC](https://forum.bubble.io/t/custom-state-with-list-of-types/145098 "2021-04-07T02:39:05Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [April 8, 2021, 10:09am UTC](https://forum.bubble.io/t/custom-state-with-list-of-types/145098/7 "2021-04-08T10:09:34Z")

</div>

@emma1

Your custom state ‘Genre’ is of type ‘Genre’

But your Input Text Genre is (presumably) a text.

The value of the custom state needs to be an actual (existing) Genre from your database.

So if you’re using a text input to find a Genre, you’ll need to search the database for a Genre, where a specified field (a text value) matches the input texts value, and select the first item.

So your custom state value should be:

new\_artist’s Genre: plus item  
search for Genres: name (for example) = Input Text Genre’s value  
:First Item

---

_[View the full topic](https://forum.bubble.io/t/custom-state-with-list-of-types/145098)._
