Default values
What are default values?
Default values are predefined values that are set for specific fields in a content type. They help you bring more consistency into your content model. Default values are automatically applied to the fields when an entry is created in either the web app, API, or any of the developer tools.
NOTE: An entry field that contains a default value is editable. You can change the pre-filled default value and fill in the field with a different value.
Default values help you and your editors be more efficient in editing content by letting you focus on editing the primary content fields while secondary fields are pre-filled with the default values you provided.
Where to use default values
Below are some examples of how a default value can be applied to a field:
Support naming conventions - If an internal name for a blog post always begins with โXYZโ, then โXYZโ can be set as the default value, meaning editors only need to add extra information.
Hide new pages from search engines - Set a "no_index" field on your SEO content type to โfalseโ. In that case newly created pages wonโt be displayed as search results in any search engines until you deliberately change it.
Set image default position on a page - Set a default value for an "alignment" field in your โImage Wrapperโ content type. This wayย your images will always be displayed in a default position in your application - e.g., always in the center of the page. For more details, please refer to Creating a content type with default values.
Creating a content type with a default value
Go through the steps below to learn how to set up an example โalignmentโ field for an image content type.
1. In the web app, go to the Content model tab.
2. Create a new content type called โImage Wrapperโ and add an image field to it.
3. Add a text field called โalignmentโ.
4. In the Validation tab of your newly created โalignmentโ field, select the Accept only specified values checkbox. Add the following specified values: โcenterโ, โleftโ, โrightโ.

5. In the Appearance tab, select Dropdown as a display option.
6. In the Default value tab, select the required default value for your field. In our example, the default value is โcenter.โ

7. Confirm the settings to save the field, then save the content type.
Now, letโs see this in action by heading over to the Content tab in the web app. Create an entry for the โImage Wrapperโ content type that you just created. The โalignmentโ field will be displayed with a pre-filled default value โcenterโ:

NOTE: An entry field that contains a default value is editable. You can change the default value in the entry editor for any other of the specified values.
Setting default values programmatically
To learn more about default values and how you can apply them programmatically, please refer to our Developer documentation about content types.