Lookup
Lookup fields display values from related collections without creating new database columns. They're read-only fields that pull data from existing relationships.
View all settings
| Setting | Description |
|---|---|
| Field Name | Text input, required. Unique identifier for the lookup. |
| Input Type | Dropdown, required. Choose Association, Relation, or Self. |
| Display Label | Text input. Human-readable label shown in forms. |
| Relation | Dropdown, required. The relational field to pull data from. |
| Lookup Field | Multi-select, required. Which field(s) from the related collection to display. |
| Sort Order | Number input, defaults to 0. Position in field lists. |
| Icon | Icon picker. Visual identifier. |
| Lookup Records Limit | Number input. Maximum number of related records to display. |
| Concat | Text input. Separator string when displaying multiple values (e.g., , ). |
| Status | Toggle, defaults to true. Enable or disable the field. |
| Required | Checkbox. Make the lookup mandatory. |
| Description | Text area. Documents the field's purpose. |
Input Types
Choose the input type that matches how you want to retrieve lookup data:
- Association — Pull values from associated collections linked through foreign key relationships
- Relation — Retrieve data from related collections using existing relational fields
- Self — Reference other records within the same collection for hierarchical or self-referential data
With Self, you can select the current table in the Relation dropdown. This enables self-referential lookups like parent/child hierarchies within the same collection. The exact behavior and use cases for this feature are still being refined.
Changing the input type resets the Relation and Lookup Field selections since each type provides different options.
Basic Settings
Enter a Field Name using camelCase — this becomes the unique identifier for your lookup. Set a Display Label for forms if you want something more human-readable than the field name.
Select the Relation to specify which relational field provides the data source. Once selected, the Lookup Field dropdown populates with available fields from the related collection. Select one or more fields to display.
Use Lookup Records Limit to cap how many related records appear when there are multiple matches. The Concat field lets you specify a separator string (like , or -) when displaying multiple lookup field values together.
Toggle Status to enable the field and check Required if this lookup must have a value.
Advanced Settings
The Description text area lets you document the lookup's purpose for your team.
See Common Settings for shared advanced options like Form Visibility and DB Field Name.
Query Filters
The Query Filters tab lets you restrict which records appear in lookup results. Build filter conditions using SQL-like logic:
| Setting | Description |
|---|---|
| Conjunction | First filter uses WHERE, subsequent filters use AND or OR. |
| Field | Select a field from the lookup source to filter on. |
| Operator | Comparison operator (is equal to, is not equal to, contains, etc.). |
| Value | The value to compare against. |
Click Add Filter to add multiple conditions. Filters combine to narrow the lookup results — useful when you only want to show active records or records matching specific criteria.
Example filters:
WHERE status = "active"— Only show active recordsWHERE status = "active" AND department = "Sales"— Active sales records only
Use Cases
- Display customer name on order list — Instead of showing a customer ID, lookup the customer's full name from the Customers collection
- Show category labels in product tables — Pull in the category name for easy browsing
- Display manager name in employee records — Use Self input type to reference another employee record as the manager
Lookup vs Relational
| Aspect | Lookup | Relational |
|---|---|---|
| Purpose | Read-only display | Create database relationships |
| Database impact | No new columns | Creates foreign keys |
| Data editing | Cannot modify related data | Can create/edit related records |
| Best for | Showing related info | Managing relationships |
Related
- Common Settings — Shared settings reference
- Relational — For creating relationships
- Association — For aggregating related data