---
title: "Component field validation"
date: "2018-10-23T14:47:58+00:00"
summary: "Streamline your component creation process with built-in field validation. Learn how to easily set required fields and custom error messages for improved data integrity and user experience."
image:
type: "page"
url: "/drupal-starter-kits/add-ons/site-studio/component-field-validation"
id: "606573e0-e628-49ff-9254-25e1783acd3d"
---

You can set some basic validation on your Component form fields.

Add validation
--------------

1.  Navigate to edit a Component 
2.  Double click on a form field element on your Component form builder
3.  Within the **Validation section,** toggle the **Required field** to ON
4.  Enter a validation message in the **Error message field.**

![c24f1ba2-component-field-validation.png](https://acquia.widen.net/content/357c50c8-258a-42df-afec-57f9af4d4acf/web/c24f1ba2-component-field-validation.png)