Enum
Enum fields store enumerated values defined as constants for backend logic.
View all settings
| Setting | Description |
|---|---|
| Field Name | Text input, required. Unique identifier for the field. |
| Input Type | Dropdown, required. Choose Single or Multi. |
| Default Value | Dropdown. Pre-selected option for new records. |
| Display Label | Text input. Human-readable label shown in forms. |
| Sort Order | Number input, defaults to 0. Position in field lists. |
| Icon | Icon picker. Visual identifier. |
| Options | Tag input, required. Comma-separated enum values. |
| Status | Toggle, defaults to true. Enable or disable the field. |
| Required | Checkbox. Make the field mandatory. |
| Description | Text area. Documents the field's purpose. |
| Form Visibility | Dropdown. Show in Add, Edit, or Both forms. |
| DB Field Name | Text input. Custom database column name. |
| Use as Index | Checkbox. Create database index for performance. |
| Populate from Logged-In User | Checkbox. Auto-fill from user session. |
Input Types
- Single — Single selection from enum values
- Multi — Multiple selection from enum values
When to Use
Choose Enum over Select when:
- Values are constants used in code conditionals
- You need type-safe values in your backend
- Options rarely change and are tied to business logic
Choose Select instead when:
- Options are user-facing display values
- You need to dynamically load from Data Objects
- Values may change frequently
Settings
See Common Settings for shared options.
Not available: Primary Key, Unique, Faker Type
Options (Basic Settings)
Options are required. Type comma-separated values and press Enter to add multiple at once. Click Add Bulk to open a text area for adding multiple options separated by commas, spaces, or new lines.
Difference from Select
| Aspect | Enum | Select |
|---|---|---|
| Storage | Constants | Strings |
| Use in code | Conditionals, type checks | Display values |
| Data Object | Not supported | Supported |
| Best for | Backend logic | User-facing options |
Use Cases
- Order status (PENDING, PROCESSING, SHIPPED, DELIVERED)
- User roles (ADMIN, EDITOR, VIEWER)
- Payment methods (CREDIT_CARD, PAYPAL, BANK_TRANSFER)
- Priority levels (LOW, MEDIUM, HIGH, CRITICAL)
Related
- Common Settings — Shared settings reference
- Select — For user-facing options