> For the complete documentation index, see [llms.txt](https://docs.devhub.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devhub.com/forms/using-fieldsets.md).

# Using fieldsets

Grouping your form builder fields into fieldset elements

## Configuring fieldsets

Configuring Fieldsets is done within the Site Builder under the Forms section.

### Adding Fieldsets to a Form

When editing a Form, you can add and order Fieldsets. When adding a fieldset, you will be setting a "Slug" value. This value is used to group and assign fields and should be entered as just letters, numbers and dashes (i.e. `custom-fieldset`).

![](https://825756965-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L_zivnvKch6re2urR-L%2F-MQmTodlCiz8wWeiP6fs%2F-MQmWHGNleNpG-Br94t4%2FScreen%20Shot%202021-01-11%20at%209.35.10%20AM.png?alt=media\&token=6e84d751-2459-42d3-a998-336029bad0ec)

You also have the option to enable a Legend for the Fieldset (optional). If set, this will add a `<legend>` attribute to the top inside the `<fieldset>` element. This legend can be used to label that group of fields for the visitor.

### Assigning Fields to a Fieldset

Each field can be assigned using the `slug` value of the Fieldset. This value is entered into the "In Fieldset" field under the "Advanced" section when editing a particular Field.

![](https://825756965-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-L_zivnvKch6re2urR-L%2F-MQmTodlCiz8wWeiP6fs%2F-MQmWKtMyoAEMbXINBwn%2FScreen%20Shot%202021-01-11%20at%209.35.21%20AM.png?alt=media\&token=9f90a069-e55d-4491-b66a-e8c49ff28f54)

## Default Fieldset

If a field is not assigned to a Fieldset, it will be added to a default `<fieldset>` at the first position within the form. For example, if you just add a form with 3 fields with no custom Fieldset, then the form will contain the single `<fieldset>` element with all of your 3 fields within it.

If all fields within the form are assigned to custom Fieldsets, then the first default `<fieldset>` will not be output into the HTML.
