A Field is a specific type of value within a Collection. For example, you might have Title, Body, Author, and Date Published fields within an Articles collection. Each field represents a database column.
To get started, go to Settings > Collections & Fields, choose the Collection you want to add the field to, then click "New Field".
Do you want a Toggle? Text Input? Map? Dropdown? Relationship? There are many Core Interfaces available here, with even more Extension Interfaces available. This is always the first step when creating a new field, and dictates the rest of the process.
Only the "Name" is required for this step, but it's good to familiarize yourself with the other options to get the most out of each field.
This step only appears if you selected a relational interface, such as Many to Many or Translations. If you're unfamiliar with relationships you can learn how to configure them in our Relationships Guide.
Interfaces are highly customizable with options that allow you to tailor them to individual uses. These vary depending on interface complexity, with less-common options hidden within an "Advanced" accordion. In addition to an interface's custom options, every field has a system option for its width. Learn more about this within the Field Layout section below.
You can change the layout of fields on the Item Detail page to create tailored forms for each collection. Layout is configured through the following settings:
You can use the drag handles on the left of each field to update their order within Directus.
Initially, Directus fields mirror the order of their respective database columns. However Directus allows you to manage column order and field order separately, since the specific order of columns in the database can be used to optimize query performance.
You can also adjust the width of each field within the Directus Item Detail form. Certain width options wrap differently, so form placement may also be affected (in combination with the field's sort value). The width options are explained visually below.
Clicking the "×" icon on the right side of the Fields interface will completely delete the field from the schema as well as all its Item data. You are prompted to confirm this action, however once the field delete is executed the change takes place immediately.
It is possible to irreverisbly delete massive amounts of data with this feature. Proceed with extreme caution.