Skip to main content

Enum

Enum fields store enumerated values defined as constants for backend logic.

View all settings
SettingDescription
Field NameText input, required. Unique identifier for the field.
Input TypeDropdown, required. Choose Single or Multi.
Default ValueDropdown. Pre-selected option for new records.
Display LabelText input. Human-readable label shown in forms.
Sort OrderNumber input, defaults to 0. Position in field lists.
IconIcon picker. Visual identifier.
OptionsTag input, required. Comma-separated enum values.
StatusToggle, defaults to true. Enable or disable the field.
RequiredCheckbox. Make the field mandatory.
DescriptionText area. Documents the field's purpose.
Form VisibilityDropdown. Show in Add, Edit, or Both forms.
DB Field NameText input. Custom database column name.
Use as IndexCheckbox. Create database index for performance.
Populate from Logged-In UserCheckbox. 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

AspectEnumSelect
StorageConstantsStrings
Use in codeConditionals, type checksDisplay values
Data ObjectNot supportedSupported
Best forBackend logicUser-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)