Filter the records a reference question offers
Create a reference filter that limits the records a catalog Reference or Multiple reference question offers, and apply it to questions.
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.
Before you begin
- You need the
administratorrole. - The question exists and its Reference table is set. See Question fields.
- For forms other than catalog forms, such as an incident form, use a reference qualifier instead. See Reference Qualifiers.
Steps
-
Go to Data model → References & queries → Reference filters and select New.

The Reference filters item in the References & queries menu. -
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 
The empty Create Reference filter form, with Name, Table, Condition and Script. -
Build the condition in the Condition field.

The Asset type - active, can be borrowed filter: three condition rows on the ITSM Asset Type table. -
Optional: write a Script that returns a table record query. The catalog form and its answers are available as
current, socurrent.Country()is the answer to a question namedCountry. This script offers selectable locations in the chosen country:AND( EQUAL("Selectable", true), EQUAL("Country", current.Country()) )The query functions are described in Table.
-
Select Create.
-
Go to Catalog & templates → Catalog → Questions and open the Reference or Multiple reference question on the same table.
-
On the Question type tab, select the filter in Reference filter and save.

The Question type tab of a Reference question, with Reference table and Reference filter.
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.