# Edit hasAndBelongsToMany relationships using a Select?

**URL:** <https://community.forestadmin.com/t/edit-hasandbelongstomany-relationships-using-a-select/2818>\
**Category:** Help me!\
**Created:** [June 30, 2021, 3:22pm UTC](https://community.forestadmin.com/t/edit-hasandbelongstomany-relationships-using-a-select/2818 "2021-06-30T15:22:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PJ\_Bergeron](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/pj_bergeron/32/961_2.png) [@PJ\_Bergeron](https://community.forestadmin.com/u/PJ_Bergeron)\
**Post date:** [June 30, 2021, 3:22pm UTC](https://community.forestadmin.com/t/edit-hasandbelongstomany-relationships-using-a-select/2818/1 "2021-06-30T15:22:39Z")

</div>

Hi!

I’m using the ‘forest\_liana’ gem (version 6.3) in my Ruby on Rails (version 5.2) app.

Basically I have a Travel model and a Theme model. I’m using a has\_and\_belongs\_to\_many relationship between these two models.

When I open Forest Admin, open a Travel, click on Themes (in Related Data), then “Add an existing theme”, I get a simple search field (cf screenshot).

 ![Screenshot 2021-06-30 at 17.16.26](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/e/ea9669c688067e8214cc3b610eb2a2bedef19b5b.jpeg)

My question is: is there any way to have a list of possible values instead of this search field? This is what we would like to have:  
[http://g.recordit.co/TmziMAnkpb.gif](http://g.recordit.co/TmziMAnkpb.gif)

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![GuillaumeGautreau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/guillaumegautreau/32/557_2.png) [@GuillaumeGautreau](https://community.forestadmin.com/u/GuillaumeGautreau)\
**Post date:** [June 30, 2021, 3:25pm UTC](https://community.forestadmin.com/t/edit-hasandbelongstomany-relationships-using-a-select/2818/2 "2021-06-30T15:25:47Z")

</div>

Hello @PJ_Bergeron,

When you click in this search field, do you have any suggestion, just as in your screen capture?

---

<div class="post-metadata">

**Author:** ![PJ\_Bergeron](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/pj_bergeron/32/961_2.png) [@PJ\_Bergeron](https://community.forestadmin.com/u/PJ_Bergeron)\
**Post date:** [June 30, 2021, 3:30pm UTC](https://community.forestadmin.com/t/edit-hasandbelongstomany-relationships-using-a-select/2818/4 "2021-06-30T15:30:06Z")

</div>

Hello,  
When I click in this search field I don’t get any suggestion. Only if I start typing something. It would make it easier for us if we could see a list of all possibles values, or the most used ones.

 ![Screenshot 2021-06-30 at 17.31.58](https://europe1.discourse-cdn.com/flex013/uploads/forest/original/2X/2/2f0e159dc1192ec4390376732a319fd3e3fd972e.png)

---

<div class="post-metadata">

**Author:** ![GuillaumeGautreau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/guillaumegautreau/32/557_2.png) [@GuillaumeGautreau](https://community.forestadmin.com/u/GuillaumeGautreau)\
**Post date:** [July 1, 2021, 7:20am UTC](https://community.forestadmin.com/t/edit-hasandbelongstomany-relationships-using-a-select/2818/5 "2021-07-01T07:20:29Z")

</div>

Hello @PJ_Bergeron,

I added your suggestion in our product board, that regroups all improvement ideas on the platform. For now, it’s not possible to display a list just on click.
