# Required fields in a Set within a custom Layout Component

**URL:** <https://discourse.getcockpit.com/t/required-fields-in-a-set-within-a-custom-layout-component/1909>\
**Category:** Support\
**Created:** [April 12, 2021, 8:15am UTC](https://discourse.getcockpit.com/t/required-fields-in-a-set-within-a-custom-layout-component/1909 "2021-04-12T08:15:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tommueller](https://avatars.discourse-cdn.com/v4/letter/t/aca169/32.png) [@tommueller](https://discourse.getcockpit.com/u/tommueller)\
**Post date:** [April 12, 2021, 8:15am UTC](https://discourse.getcockpit.com/t/required-fields-in-a-set-within-a-custom-layout-component/1909/1 "2021-04-12T08:15:17Z")

</div>

I have a custom Layout Component, which contains a Repeater field which has a Set as it’s type that is repeated. What I cannot get to work is setting required fields within this Set.  
I know, that I need to set the “required” value into a nested options element, but it still does not work:

```auto
{
  "field": {
    "type": "set",
    "options": {
      "fields": [
        {
          "name": "title",
          "type": "text",
          "options": {
            "required": true
          }
        }, ...
      ]
    }
  }
}

```

This does not fail during saving when the title is not set. I assume, that the conditions within the Layout Component are not validated during saving of the Collection entry?

Thanks for clarification.
