---
title: "Add a custom related list"
site: admin
version: 2027.1
versions: "all"
url: https://docs-new.servicely.ai/admin/2027.1/forms-and-lists/add-a-custom-related-list/
type: task
application: platform
last_updated: 2026-12-03
commit: 6777698daac5
---


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.

<Callout type="info">
  **Changed in 2027.1.** You place the list in Form Builder and choose it in the element's **List** setting. Its columns, sort order, condition, grouping and page size are set in the Properties panel instead of as typed renderer properties.
</Callout>

## 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>
    In the Administration workspace, go to **Forms, lists & navigation → Forms & lists → Custom related lists** and select **New**.

    <Image src="asset:screenshots/admin/forms-and-lists-add-a-custom-related-list/custom-related-lists-menu.png">The Custom related lists item in the Forms & lists section of the Forms, lists & navigation menu.</Image>
  </Step>
  <Step>
    Fill in the fields in the table below.

    <Image src="asset:screenshots/admin/forms-and-lists-add-a-custom-related-list/new-custom-related-list.png">The empty Create Custom related list form, with Name, Description, Accessible on, Table and the Query script.</Image>
  </Step>
  <Step>
    Save the custom related list.
  </Step>
  <Step>
    Open a record of a table named in **Accessible on**, and open Form Builder. See [Configure a form layout](page:forms-and-lists/configure-a-form-layout).
  </Step>
  <Step>
    Select the field or container next to which the list should go, and select **Add below** or **Add above**.
  </Step>
  <Step>
    On the **Layout element** tab of the popup, select **Custom related list**. The element is placed and selected.
  </Step>
  <Step>
    In the Properties panel, select the custom related list you created in **List**, and give the element a **Label**.

    <Image src="asset:screenshots/admin/forms-and-lists-add-a-custom-related-list/element-properties.png">A custom related list element on the form, with its settings in the Properties panel.</Image>
  </Step>
  <Step>
    Optionally, set the list's columns, sort order and **Show create button**. See the second table below.
  </Step>
  <Step>
    Select **Save** in Form Builder.
  </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 settings change how the list looks on this form. **Show create button** is on the **General** tab. The others are on the **Relation** tab.

| Setting | Renderer property | What it does |
| --- | --- | --- |
| Show create button | `enableCreateButton` | Shows a **New** button on the list. |
| Sort order | `sortOrder` | Sets the list's initial order. Drag the fields to set precedence. |
| Columns | `columnList` | Sets the columns of the list, in order. |
| List condition | `listQuery` | Lists only records that match this condition, on top of the custom related list's own query. |
| Group by | `groupList` | Groups the rows by these fields. Each must also be a column. |
| Page size | `pageSize` | Sets the rows per page. The default is 10. |

## 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:forms-and-lists/layout-elements)
- [Configure a form layout](page:forms-and-lists/configure-a-form-layout)
- [Table, field and renderer properties](page:data-model/table-and-field-properties)
- [Table](page:api/scripting/records/table)
