---
title: "Validation"
slug: "validation"
abstract: "How to add a validation component that can validate content and highlight errors or missing field information in details pages."
---
# Validation

You can add the **Validation** component to details pages to collect and display validation errors or to highlight fields where information is missing.

With the validation feature:

- Validation errors are displayed on details pages, ensuring users can easily identify when required fields still need to be completed. For example, if publishing an asset makes additional fields mandatory, the **Validation** component will mention those required fields so you can resolve them before proceeding.

    ![Example of the Validation component on a campaign details page when a field is not complete](https://doc.sitecore.com/api/markdown-image/ch/en/users/content-hub/images/validation-component-on-campaigns-details-page.png)

- Fields that are required in a particular state of a state flow are highlighted so they can be addressed. In this example, only the asset title is required in the **Create** state. When the asset moves to the **Approve** state, the asset type is also a required field. The validation feature highlights the **Asset type** field indicating to the approver that it is required.

    ![Example of a section being highlighted when a field is incomplete](https://doc.sitecore.com/api/markdown-image/ch/en/users/content-hub/images/highlighed-section-validation-extended.png)

To add a **Validation** component:

1. On the menu bar, click **Manage** :mdiCogOutline:.
2. On the **Manage** page, click **Pages**.
3. On the **Pages** page, select the details page you want to modify.
4. On the **Layout** tab, [add the page component](https://doc.sitecore.com/ch/en/users/content-hub/add,-modify,-or-delete-page-components.md "Add, modify, or delete page components").
5. Click **Save**.

> [!note]
> If you are adding a **Validation** component to the asset details page, click the component to open its details page and, in the **Select lifecycle statuses** field, click ![plus.png](https://doc.sitecore.com/api/markdown-image/ch/en/users/content-hub/images/plus.png) **Add**. In the **Status** dialog, select the check boxes next to the statuses where you want validation to be performed.