> 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.

![](/files/-Lml0uZ_Kx_NCWIU1Bzt)

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

![](/files/-Lml202p4rjZPfheZjJ8)


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
