Docs
On this page
task2 min readApplication: Platform

Add a custom related list

Show a list of records found by a query on a form, such as a user's recent incidents, when no relationship links the two tables.

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

  1. In the Administration workspace, go to Forms, lists & navigation → Forms & lists → Custom related lists and select New.

    The Custom related lists item in the Forms & lists section of the Forms, lists & navigation menu.
  2. Fill in the fields in the table below.

    The empty Create Custom related list form, with Name, Description, Accessible on, Table and the Query script.
  3. Save the custom related list.

  4. Open a record of a table named in Accessible on, and open Form Builder. See Configure a form layout.

  5. Select the field or container next to which the list should go, and select Add below or Add above.

  6. On the Layout element tab of the popup, select Custom related list. The element is placed and selected.

  7. In the Properties panel, select the custom related list you created in List, and give the element a Label.

    A custom related list element on the form, with its settings in the Properties panel.
  8. Optionally, set the list’s columns, sort order and Show create button. See the second table below.

  9. Select Save in Form Builder.

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.

Last updated 3 December 2026commit 6777698daac5Chris Jones
Back to top