---
name: "[up-fieldset]"
area: "API"
kind: "HTML attribute"
parent: "up.form module"
visibility: "deprecated"
url: "https://unpoly.com/api/up-fieldset"
---
<nav aria-label="Unpoly docs">[All docs](https://unpoly.com/index.md) · [up.form module](https://unpoly.com/api/up.form.md)</nav>

# [up-fieldset]

**This feature has been deprecated**. Use [`[up-form-group]`](https://unpoly.com/api/up-form-group.md) instead.

Load [`unpoly-migrate.js`](https://unpoly.com/changes/upgrading.md) to polyfill deprecated features.

Marks this element as a from group, which (usually) contains a label, input and error message.

You are not required to use form groups to [submit forms through Unpoly](https://unpoly.com/learn/submitting-forms.md). However, structuring your form into groups will help Unpoly to make smaller changes to the DOM when working with complex form. For instance, when [validating](https://unpoly.com/api/up-validate.md) a field, Unpoly will re-render the [closest](https://developer.mozilla.org/en-US/docs/Web/API/Element/closest) form group around that field.

By default Unpoly will also consider a `<fieldset>` or `<label>` around a field to be a form group. You can configure this in [`up.form.config.groupSelectors`](https://unpoly.com/api/up.form.config.md#config.groupSelectors).

