# Creating relation via form

**URL:** <https://community.glideapps.com/t/creating-relation-via-form/68209>\
**Category:** Ask for Help\
**Created:** [November 28, 2023, 7:35pm UTC](https://community.glideapps.com/t/creating-relation-via-form/68209 "2023-11-28T19:35:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tomasz\_Winiarski](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tomasz_winiarski/32/66783_2.png) [@Tomasz\_Winiarski](https://community.glideapps.com/u/Tomasz_Winiarski)\
**Post date:** [November 28, 2023, 7:35pm UTC](https://community.glideapps.com/t/creating-relation-via-form/68209/1 "2023-11-28T19:35:48Z")

</div>

Hi!  
it should be easy - but I din’t found any way…

I have a countries (poland, germany, china, canada)  
and bunch of cities (Warsaw, berlin, Toronto, Ottawa, Washington, Beijing)  
Cities table has two columns: | name | country |  
Countries has three columns: | name | rel\_Cities |  
of course this is typical one (country) to many (cities) relationship.

Question is: It is easy to build EDIT COUNTRY screen with collection of child cities and action “add” new city. But is there any way to CHOOSE a city from list of existing cities?

For example, a have a list of 10 cities, on EDIT CANADA I want to see choice component with 10 city-chips (nice!), and I wan to select 3 of them and assign them to Canada…

I hope you understand, my English is not so good 🙂

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [November 28, 2023, 8:04pm UTC](https://community.glideapps.com/t/creating-relation-via-form/68209/2 "2023-11-28T20:04:38Z")

</div>

> [@Displaying Selected Category Locations on MAP Using Choice Component: Need Assistance](https://community.glideapps.com/t/displaying-selected-category-locations-on-map-using-choice-component-need-assistance/68121/16):
>
> This is what I mean. In the filter you have to use the Screen Value. The value of the first choice component is on the Screen, so you want to filter your second choice component by the value of the first choice component…which is on the screen. [image]
