# Form:Set

This is a "convenience" wrapper tag that will set all _other_ form tags to use the same formset.

## Overview

Each `form` tag needs to know which formset it is handling. As a convenience, rather than re-specifying the same formset parameter over and over, we can use an enclosing `{{ form:set }}` tag pair to apply it everywhere, automatically.

::tabs

::tab antlers
```antlers
{{ form:set is="contact" }}

    {{ if {form:errors} }}
      {{ form:errors }}...{{ /form:errors }}
    {{ /if }}

    {{ if {form:success} }}...{{ /if }}

    {{ form:create }}...{{ /form:create }}

{{ /form:set }}
```
::tab blade
```blade
<statamic:form:set
  is="contact"
>
  <statamic:form:errors
    as="errors"
  >
    @foreach ($errors as $error)
      {{ $error['value'] }}
    @endforeach
  </statamic:form:errors>
  
  <statamic:form:success>
    ...
  </statamic:form:success>
  
  <statamic:form:create>
    ...
  </statamic:form:create>
</statamic:form:set>
```
::

In this example, if we didn't use the `form:set` wrapper tag, we would need to add `in="contact"` to each of the
`form:something` tags.
