# Custom action - link to screen + filter

**URL:** https://community.glideapps.com/t/custom-action-link-to-screen-filter/28660
**Category:** Ask for Help
**Created:** [July 3, 2021, 12:00pm UTC](https://community.glideapps.com/t/custom-action-link-to-screen-filter/28660 "2021-07-03T12:00:24Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![felixvona](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/felixvona/32/16028_2.png) [@felixvona](https://community.glideapps.com/u/felixvona)
#### Post date: [July 3, 2021, 12:00pm UTC](https://community.glideapps.com/t/custom-action-link-to-screen-filter/28660/1 "2021-07-03T12:00:25Z")

</div>

Hi,

I am trying to create an Airbnb kind of app and I have a question.

I want to have a tab that shows a list of cities in my country.  
When a person selects a destination, - go to the other screen that displays houses only in that city. That screen also needs to have a form button with filters (such as price, number of people…), so it needs to be a details screen (not just a list).

When I create a link to screen action with city-houses relations, I cannot have a detail screen (to add a button), but just a list of houses in that city.

Is there a way to create a custom action that would somehow allow for this?

Thank you!  
Srecko

---

<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: [July 3, 2021, 7:11pm UTC](https://community.glideapps.com/t/custom-action-link-to-screen-filter/28660/2 "2021-07-03T19:11:06Z")

</div>

Your action for your list of cities should just be a View Details action. Not link to screen. Creat a relation from your cities table to your houses table. Then on that details screen after you select a city, you can add an inline list that points to that relation.

---

<div class="post-metadata">

### Author: ![felixvona](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/felixvona/32/16028_2.png) [@felixvona](https://community.glideapps.com/u/felixvona)
#### Post date: [July 5, 2021, 12:57pm UTC](https://community.glideapps.com/t/custom-action-link-to-screen-filter/28660/3 "2021-07-05T12:57:03Z")

</div>

Oh, thank you so much!  
Works like a charm 😃
