Boolean
Boolean fields store true/false values for flags and toggles.
Go to Studio → Collections → [Collection Name] → Fields tab → Add Field, then select Boolean. To edit an existing field, click the edit action next to it.
View all settings
| Setting | Description |
|---|---|
| Field Name | Text input, required. Unique identifier for the field. |
| Input Type | Dropdown, required. Choose Active/Inactive, Checkbox, Toggle, or Yes/No. |
| Default Value | Dropdown. Select True or False. |
| Display Label | Text input. Human-readable label shown in forms. |
| Icon | Icon picker. Visual identifier. |
| 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. |
| Faker Type | Disabled 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)
Related
- Common Settings — Shared settings reference
- Choice — For more than two states