Hello everyone,
I’ve built a simple app using Softr and Airtable. I have two linked tables in Airtable: one for Cities and one for Apartments. A city can be linked to multiple apartments.
In Softr, I’ve created a page with a LIST block to display my Cities. I would like to set it up so that when I click on a city, it opens a new page displaying a list of all apartments available in that city.
Could anyone guide me on how to achieve this?
Thanks in advance!
Create a page called “Cities-details” (you can choose any name that makes sense to you and your use-case). In your existing page with the list block you have mentioned above, set the “on-click” to open the new page “Cities-details”.
On the Cities details page add a List Details Block. This must reference the same Airtable table as your list block on the other page (Cities). Choose the fields that you would like to be displayed for any/all city/cities.
On the same (cities details) page you need to add another block, this time a list block. This list block needs to be mapped to your Apartments table. You now need to set the conditional filters so that it only shows (apartment) records that are linked to the city. You will be able to do this by referencing whichever linked/lookup fields you have set up to create the relationship between city/apartments in your Airtable tables.
For exactly how this works, see the documentation for Linked Lists
Enjoy watching the magic happen!
Thanks a lot! That exactly what I was looking for!
2 Likes