> For the complete documentation index, see [llms.txt](https://help.adalo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.adalo.com/component-basics/connecting-lists-and-forms-to-a-database/lists-of-lists.md).

# Lists of Lists

*Skill Level: Intermediate*

## Before You Begin

* It is not recommended to use Lists of Lists with External Collections.
* Using Lists of Lists may decrease performance if loading large amounts of data from a collection.

***

Adalo offers the powerful capability to create a List within a List. For example, in a trip planning app, you might want a screen that lists the days of the trip, and under each day, a list of that day’s activities.

![](https://3467607506-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LhGHkPsv15svPIU5I7C%2F-LmkyN6m9aPSi_lao8y4%2F-Lml0uZ_Kx_NCWIU1Bzt%2FScreenshot%202019-08-20%20at%204.53.40%20PM.png?alt=media\&token=7bacef79-8043-46da-9b1b-99b34b8d6638)

To create this list within a list, it's best to start at the base level and then build up.  In this example our database has three collections: Trips, Days, and Activities.  Days have a relationship property to Trips, and Activities have a relationship property to Days.

1. Add a Simple List to your screen
2. Set the List to be a list of Activities
3. Add a Text component above the Simple List that will serve as the Day header
4. Add an Add Activity button to the bottom of the Activities List
5. Now select the Simple List, the header Text, and the button components
6. In the Left Panel, click the "Make List" button
7. In the Left Panel, set the new list to be a list of Days
8. Set the Filter to be Current Trip Days
9. Now click into the header Text, and set the Magic Text to be Current Day Name
10. Now click into the Simple List and set its filter to be Current Day Activities

![](https://3467607506-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LhGHkPsv15svPIU5I7C%2F-LmkyN6m9aPSi_lao8y4%2F-Lml202p4rjZPfheZjJ8%2FWander%20\(1\).gif?alt=media\&token=98a5bffc-cd5d-45fd-844d-a9eaaa3aedd2)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.adalo.com/component-basics/connecting-lists-and-forms-to-a-database/lists-of-lists.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
