Custom Lookup Options imports custom datasets from a CSV file for lookups and validation tailored to client-specific requirements. The imported data supplies the options in select-type custom fields, such as Select One - Dropdown List, Select One - Radio Button, and Lookup - Autocomplete Options. For definitions of each custom field setting, see Custom Fields Common Input Types Settings Reference.
Who: Global administrators
When to Use Custom Lookup Options
Use Custom Lookup Options when:
- Selection lists need extensive sets of options, such as item inventory codes, code dictionaries, or geographic lookups.
- Lookups and validation require custom datasets tailored to specific requirements.
- Options in one field depend on the value selected in a preceding field.
- Option data does not need to exist as records in the system, unlike with the Enable Dynamic Content option within a custom field.
Import a Custom Lookup
The import creates a custom lookup from a CSV file that contains the custom data.
To import a custom lookup from a CSV file:
- Click the System Administration gear in the upper navigation bar, and select Global Settings from the drop-down menu.
- Locate the System Configuration section, and click Custom Lookup Options.
- Click the Import Custom Lookup Options button.
- Locate the Data Source Field, and select Upload File (CSV file).
- Click the Choose file [folder] icon and click the name of the CSV file to upload.
- The first row of the CSV must include column headers.
- Click the Upload button.
- Click the Lookup Name field, and add a descriptive name to identify the custom lookup.
- The Lookup Name identifies the set of lookup options.
- Click the Lookup Key field, and select one of the columns from the drop-down menu to serve as the Lookup Key.
- Optional: Click the Primary Key field, and select one of the columns to serve as the Primary Key.
- A primary key uniquely identifies a single row in the table.
- Click Next.
- Review the sample of the uploaded data to verify that the data processed correctly.
- Toggle Include Column on each column to include in the final import, and then click Next.
- Review the changes, and then click Next.
Update an Existing Custom Lookup
To update an existing custom lookup:
- Click the System Administration gear in the upper navigation bar, and select Global Settings from the drop-down menu.
- Locate the System Configuration section, and click Custom Lookup Options.
- Click the Import Custom Lookup Options button.
- Locate the Data Source Field, and select Upload File (CSV file).
- Click the Choose file [folder] icon and click the name of the CSV file to upload.
- The first row of the CSV must include column headers.
- Click the Upload button.
- Click the Lookup Name field, and add a descriptive name to identify the custom lookup.
- The Lookup Name identifies the set of lookup options.
- Click the Lookup Key field, and select one of the columns from the drop-down menu to serve as the Lookup Key.
- Optional: Click the Primary Key field, and select one of the columns to serve as the Primary Key.
- A primary key uniquely identifies a single row in the table.
- Click Next.
- Review the warning stating that a lookup with the same name already exists. Click Next to continue, and then click Yes in the alert pop-up to confirm.
- Click Next to complete the import process.
View Custom Lookup Data
To view the data of a custom lookup:
- Click the System Administration gear in the upper navigation bar, and select Global Settings from the drop-down menu.
- Locate the System Configuration section, and click Custom Lookup Options.
- Click the lookup name to view its data in detail.
- The uploaded data appears in a list view organized by the Lookup Key.
- Click the Open [page] icon next to the relevant Lookup Key to view a row in more detail.
The values under Lookup Value represent attribute-value pairs corresponding to the column values for the specified row. The expanded Lookup Value data shows the values for each column in that row.
Attribute-value pairs within the Lookup Value are stored in JSON format.
Set Up a Standalone Dropdown List
A standalone dropdown list is the most straightforward method to use imported custom lookup options.
To set up a standalone dropdown list that uses a custom lookup:
- Create a Select One - Dropdown List custom field using the Access the Configuration Page for Custom Fields section of the Configure Custom Fields article.
- Click the General Settings tab, and Toggle Enable Dynamic Content on.
-
Toggle Use Custom Lookup Options on.
- Additional settings for the custom lookup become available.
- Click the Lookup Name field, and select the relevant custom lookup from the drop-down menu.
- Click the the Option Text Identifier field, and add the name of the lookup column whose values populate the dropdown list.
Set Up a Parent-Child Dropdown List
Parent-child relationships between data elements allow custom lookups to filter dropdown list options based on prior selections. After uploading a CSV containing the custom data, set up a series of parent and child dropdown lists. For manually configured conditional lists, see Configure Advanced Options for Predefined Selection Fields.
Configure the Parent Dropdown
To configure the parent dropdown:
- Create a Select One - Dropdown List custom field using the Access the Configuration Page for Custom Fields section of the Configure Custom Fields article.
- Map the lookup keys from the custom lookup data to the options to display in the dropdown list in the Predefined Options field.
Mapping the lookup keys this way allows the child dropdown to filter the custom lookup data based on the selected lookup key. For instance, when a user selects the parent option mapped to lookup key 100, the child dropdown displays only the lookup rows with lookup key 100.
Set the first item to --Select One-- to make it the default option.
Configure the Child Dropdown
To configure the child dropdown:
- Create a Select One - Dropdown List custom field using the Access the Configuration Page for Custom Fields section of the Configure Custom Fields article.
- Click the Parent Field field, and select the to the relevant parent Select One - Dropdown List custom field.
- Toggle Enable Dynamic Content on.
- Toggle Use Custom Lookup Options on.
- Additional settings for the custom lookup become available.
- Click the the Lookup Name field, and select the relevant custom lookup from the drop-down menu.
- Click the the Option Text Identifier field, and add the name of the lookup column whose values populate the dropdown list.
The options in the child dropdown update based on the selection in the parent dropdown.
Set Up Successive Dropdown Lists
The parent-child setup above enters all predefined options manually in the custom field settings. This process is time-consuming when the custom data requires frequent updates or additions. Importing multiple lookups removes the need to hardcode predefined options.
The following sections set up a sequence of dropdown lists. Each dropdown after the first is filtered by the selection in the dropdown before it. Each dropdown uses its own custom lookup.
Configure the First Dropdown
To configure the first dropdown:
- Import the CSV file for the first dropdown using the Import a Custom Lookup section of this article.
- Create a Select One - Dropdown List custom field using the Access the Configuration Page for Custom Fields section of the Configure Custom Fields article.
- Toggle both Enable Dynamic Content and Use Custom Lookup Options on.
- Click the the Lookup Name field, and select the relevant custom lookup from the drop-down menu.
- Click the the Option Text Identifier field, and add the name of the lookup column whose values populate the dropdown list.
Configure Additional Dropdowns
Configure each additional dropdown in the same way as the first dropdown, with two differences:
- When importing the CSV file for the dropdown, select the column that identifies the related row in the previous dropdown lookup as the Lookup Key.
- When configuring the custom field, click the Parent Field field, and select the previous dropdown in the sequence.
The options in each child dropdown update based on the selection in the respective parent dropdown. The selection in the second dropdown determines the options in the third dropdown.