Skip to main content

Boolean

Boolean fields store true/false values for flags and toggles.

Go to StudioCollections → [Collection Name] → Fields tab → Add Field, then select Boolean. To edit an existing field, click the edit action next to it.

View all settings
SettingDescription
Field NameText input, required. Unique identifier for the field.
Input TypeDropdown, required. Choose Active/Inactive, Checkbox, Toggle, or Yes/No.
Default ValueDropdown. Select True or False.
Display LabelText input. Human-readable label shown in forms.
IconIcon picker. Visual identifier.
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.
Faker TypeDisabled and Deprecated. You can configure faker through collection options for each field.

Input Types

  • Active/Inactive — Shows "Active" or "Inactive" labels in the UI
  • Checkbox — Standard checkbox input, displays as checked/unchecked
  • Toggle — Modern switch UI, ideal for settings and preferences
  • Yes/No — Shows "Yes" or "No" labels in the UI

When to Use

Choose Boolean when:

  • You need a simple yes/no, true/false, or on/off value
  • The field represents a flag, toggle, or status
  • There are exactly two possible states

Settings

See Common Settings for shared options.

Not available: Primary Key, Unique

Default Value (Basic Settings)

Dropdown with options True or False. Unlike text fields, Boolean defaults are selected from a dropdown rather than typed.

Use Cases

  • Feature flags and toggles (is_active, is_published)
  • User preferences and settings
  • Status indicators (verified, approved)
  • Permission flags (can_edit, is_admin)