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. Go to Administration → Page configuration → Custom related lists and select New.

  2. Fill in the fields in the table below.

  3. Save the custom related list.

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

  5. Drag Custom related list from Layout elements to its place on the form.

    Custom related list in the Layout elements palette of the form builder.
  6. Hover over the element and select its gear.

    The gear on a custom related list element in the form builder.
  7. Select the custom related list you created.

    The element settings with a custom related list selected.
  8. Optionally, add renderer properties to set the columns, the sort order or a New button. See the second table below.

  9. Select Save in the form builder.

    A custom related list of incidents shown as a tab on a user record.
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.

Renderer properties on a custom related list element.
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.

Last updated 18 October 2026commit f37120b6b82bChris Jones
Back to top