---
title: "Add a custom related list"
site: admin
version: 1.11
versions: "all"
url: https://docs-new.servicely.ai/admin/1.11/data-model/add-a-custom-related-list/
type: task
application: platform
last_updated: 2026-10-18
commit: f37120b6b82b
---


Add a custom related list when a form should list records that no relationship ties to the record, such as the incidents a user raised in the last three months. The list uses the record on screen as the context of its query.

## Before you begin

- You need the `administrator` role. Only administrators can create custom related lists and read their query scripts.
- Know the table to list, the tables whose forms show the list, and the condition that picks the records.
- Keep the list small. If the records grow over time, limit the query by date, for example to the last three months.

## Steps

<Steps>
  <Step>
    Go to **Administration → Page configuration → Custom related lists** and select **New**.
  </Step>
  <Step>
    Fill in the fields in the table below.
  </Step>
  <Step>
    Save the custom related list.
  </Step>
  <Step>
    Open a record of a table named in **Accessible on**, and open its form builder. See [Configure a form layout](page:data-model/configure-a-form-layout).
  </Step>
  <Step>
    Drag **Custom related list** from **Layout elements** to its place on the form.

    <Image src="asset:screenshots/admin/data-model-add-a-custom-related-list/image-2.png" size="40">Custom related list in the Layout elements palette of the form builder.</Image>
  </Step>
  <Step>
    Hover over the element and select its gear.

    <Image src="asset:screenshots/admin/data-model-add-a-custom-related-list/image-3.png" size="40">The gear on a custom related list element in the form builder.</Image>
  </Step>
  <Step>
    Select the custom related list you created.

    <Image src="asset:screenshots/admin/data-model-add-a-custom-related-list/image-4.png" size="40">The element settings with a custom related list selected.</Image>
  </Step>
  <Step>
    Optionally, add renderer properties to set the columns, the sort order or a **New** button. See the second table below.
  </Step>
  <Step>
    Select **Save** in the form builder.
    <Image src="asset:screenshots/admin/data-model-add-a-custom-related-list/image.png" size="60">A custom related list of incidents shown as a tab on a user record.</Image>
  </Step>
</Steps>

| Field | What to enter | Example |
| --- | --- | --- |
| Name | A name that says what the list shows. | Incidents for this user, last 3 months |
| Description | A note for administrators. | Incidents created in the last 3 months where this user is the requester or requested for. |
| Accessible on | The tables whose forms can show the list. | User |
| Table | The table whose records the list shows. | Incident |
| Query | A script that returns the query for the list. `current` is the record on screen. | See the example below. |

This query lists incidents created in the last three months where the user on screen is the requester or the person requested for:

```
AND(
    OR(
        EQUAL("RequestedFor", current.Id()),
        EQUAL("Requestor", current.Id())
    ),
    GT("CreatedOn", DateTime().minusMonths(3))
)
```

The element's renderer properties change how the list looks on this form.

<Image src="asset:screenshots/admin/data-model-add-a-custom-related-list/image-5.png" size="40">Renderer properties on a custom related list element.</Image>

| Property | Example | What it does |
| --- | --- | --- |
| `columnList` | `Number,ShortDescription,WorkflowStatus` | Sets the columns of the list. |
| `sortOrder` | `ShortDescription:desc` | Sets the sort field. Add `:desc` to sort in descending order. |
| `enableCreateButton` | `true` | Shows a **New** button on the list. |

## Result

The form shows the list wherever you placed it, for every table in **Accessible on**. It looks like any related list. Users cannot add or remove records from it, because no relationship links the records. A user who cannot read the listed table does not see the list. Each user sees only the records their permissions allow.

## Related

- [Layout elements](page:data-model/layout-elements)
- [Configure a form layout](page:data-model/configure-a-form-layout)
- [Table, field and renderer properties](page:data-model/table-and-field-properties)
- [Table](page:api/scripting/table)
