---
title: "Reference qualifiers"
site: admin
version: 1.11
versions: "all"
url: https://docs-new.servicely.ai/admin/1.11/data-model/reference-qualifiers/
type: reference
application: platform
last_updated: 2026-10-18
commit: f37120b6b82b
---


A reference qualifier limits the records a reference field offers, for administrators who need, say, a Location field to show only the locations of the record's company. This page lists its fields and shows a scripted qualifier.

For the same filter on Service Catalog questions, see [Filter the records a reference question offers](page:catalog/reference-filters).

## Reference qualifier fields

Reference qualifiers are kept under **Application → Field → Reference qualifiers**. The examples set up a qualifier on the Location field of Incident.

| Field | Required | What it holds | Example |
| --- | --- | --- | --- |
| Name | Yes | The name of the qualifier. | Incident - Location based on selected Company |
| Table | Yes | The table that has the reference field. | Incident |
| Field | Yes | The reference field the qualifier applies to. | Location |
| Active | No | Whether the qualifier applies. The default is Yes. | Yes |
| Target table | No | Filled in for you. The table the reference field points to. The qualifier filters this table. | Location |
| Description | No | A note for administrators. | Shows the locations of the incident's company. |
| Advanced | No | Set to Yes to use **Script** instead of **Condition**. | No |
| Condition | No | A condition built with the condition builder. It runs on the target table, not on the table with the field. | See the image below. |
| Script | No | A script that returns a query on the target table. Use it when the condition depends on the record's own values. | See the example below. |

<Image src="asset:screenshots/admin/data-model-reference-qualifiers/image.png" size="60">A reference qualifier's Condition built with the condition builder.</Image>

## Scripted qualifiers

A script runs when the user opens the reference field. It runs against the target table, and `current` holds the record the user is editing, with the values currently on the form. The script returns a table record query. The query functions are described in [Table](page:api/scripting/table).

This script limits Location on an incident. If the incident has a company, the field offers selectable locations of that company. If not, it offers all selectable locations.

```javascript
if (current.Company.hasValue()) {
    AND(
        EQUAL("Company", current.Company.value()),
        EQUAL("Selectable", true)
    );
} else {
    EQUAL("Selectable", true);
}
```

## Related

- [Field types](page:data-model/field-types)
- [Table, field and renderer properties](page:data-model/table-and-field-properties)
- [Query functions](page:automation/query-functions)
- [Filter the records a reference question offers](page:catalog/reference-filters)
