Data Object
Data Objects are reusable option sets that can be referenced by Choice fields. Instead of manually entering options for each field, create a Data Object and share it across your project.
Go to Interface → Data Object in the top navigation.
When to use
- Consistency — Maintain a single source of truth for dropdown options
- Efficiency — Update options in one place and changes reflect everywhere
- Organization — Keep option lists separate from field configuration
Data object list
The list displays all Data Objects in your project:
| Column | Description |
|---|---|
| Name | Identifier for the Data Object |
| Project | The project this Data Object belongs to |
| Data Type | Type of data stored. Supports select. |
| Action | Edit or Delete the Data Object |
Creating a data object
- Click Add Data Object.
- In the Name field, enter a name for your Data Object (for example,
orderStatuses,paymentMethods). - Open the Data Type dropdown and select select.
- Add each option under Options (see Adding options).
- Click Save.
Adding options
Under Add Option, build each option and click Add. Options accumulate in the Preview pane.
| Field | Description |
|---|---|
| Label | The display text shown in dropdowns. |
| Value | The stored value used in backend logic. |
| Color & Icon | Expand to set the option's color (a preset swatch or a custom color) and icon. |
To add many options at once, expand Import from JSON and paste a JSON array of objects. Each object requires value and label properties. You can optionally include color (a hex color string) and icon (a Lucide icon name):
[
{ "value": "pending", "label": "Pending", "color": "#f59e0b", "icon": "Clock" },
{ "value": "approved", "label": "Approved", "color": "#10b981", "icon": "CheckCircle" },
{ "value": "rejected", "label": "Rejected", "color": "#ef4444", "icon": "XCircle" }
]
These render as Pending Approved Rejected.
Using data objects in fields
- Go to Collections → select your collection → Fields.
- Add or edit a Choice field.
- Turn on Use Data Object.
- Select your Data Object from the dropdown.
The field pulls its options from the Data Object instead of using manually entered values.
Editing a data object
- Click the Edit button next to the Data Object.
- Update the name, data type, or options.
- Click Save.
Changes to a Data Object immediately affect all fields that reference it. Review dependent fields before making updates.
Deleting a data object
- Click the Delete button next to the Data Object.
- Confirm the deletion.
Deleting a Data Object will break any Choice fields that reference it. Update those fields to use manual options or a different Data Object before deleting.
Related
- Choice Field — Use Data Objects in dropdown fields
- Collections — Define your data structure