---
title: "Filter the records a reference question offers"
site: admin
version: 2027.1
versions: "all"
url: https://docs-new.servicely.ai/admin/2027.1/catalog/reference-filters/
type: task
application: catalog
last_updated: 2026-12-03
commit: 6777698daac5
---


Use a reference filter when a Reference or Multiple reference question should offer only some records of its table, for example only the locations in the country the requester chose. One filter can serve any number of questions on the same table.

<Callout type="info">
  **Changed in 2027.1.** A filter that is not active restricts nothing, so the question offers every record. No action is needed on upgrade.
</Callout>

## Before you begin

- You need the `administrator` role.
- The question exists and its **Reference table** is set. See [Question fields](page:catalog/question-fields).
- For forms other than catalog forms, such as an incident form, use a reference qualifier instead. See [Reference Qualifiers](page:data-model/reference-qualifiers).

## Steps

<Steps>
  <Step>
    Go to **Data model → References & queries → Reference filters** and select **New**.

    <Image src="asset:screenshots/admin/catalog-reference-filters/nav-reference-filters.png">The Reference filters item in the References & queries menu.</Image>
  </Step>
  <Step>
    Fill in the filter's fields.

    | Field | Description | Example |
    | --- | --- | --- |
    | Name | The filter's name, shown when you pick it on a question. Required. | Location must be selectable |
    | Table | The table the filter applies to. Questions on this table can use it. Required. | Location |
    | Active | The filter applies only when active. An inactive filter restricts nothing. Default Yes. | Yes |
    | Application | The application the filter belongs to. | Your application |
    | Condition | A condition on the table's records. It is combined with the script, if any. | Selectable is true |
    | Script | A record query for rules the condition cannot express, such as one that depends on another answer. It is combined with the condition. | See the next step |

    <Image src="asset:screenshots/admin/catalog-reference-filters/new-reference-filter.png">The empty Create Reference filter form, with Name, Table, Condition and Script.</Image>
  </Step>
  <Step>
    Build the condition in the **Condition** field.

    <Image src="asset:screenshots/admin/catalog-reference-filters/reference-filter-form.png">The Asset type - active, can be borrowed filter: three condition rows on the ITSM Asset Type table.</Image>
  </Step>
  <Step>
    Optional: write a **Script** that returns a table record query. The catalog form and its answers are available as `current`, so `current.Country()` is the answer to a question named `Country`. This script offers selectable locations in the chosen country:

    ```javascript
    AND(
        EQUAL("Selectable", true),
        EQUAL("Country", current.Country())
    )
    ```

    The query functions are described in [Table](page:api/scripting/records/table).
  </Step>
  <Step>
    Select **Create**.
  </Step>
  <Step>
    Go to **Catalog & templates → Catalog → Questions** and open the Reference or Multiple reference question on the same table.
  </Step>
  <Step>
    On the **Question type** tab, select the filter in **Reference filter** and save.

    <Image src="asset:screenshots/admin/catalog-reference-filters/question-reference-filter.png" size="50">The Question type tab of a Reference question, with Reference table and Reference filter.</Image>
  </Step>
</Steps>

## Result

The question now offers only the records that match both the condition and the script. Repeat the last two steps for each question that needs the filter.

## Related

- [Question fields](page:catalog/question-fields)
- [Question data types and renderers](page:catalog/question-data-types)
- [Catalog scripting](page:catalog/catalog-scripting)
- [Reference Qualifiers](page:data-model/reference-qualifiers)
