Skip to main content

Fieldset

Fieldsets group related controls into logical sections.

Basic usage

{{
form.fieldset_start()
}}

{# form fields #}

{{
form.fieldset_end()
}}

Helper options

You can configure this helper using the common helper options, the following options are specific to this helper.

OptionTypeDescription
legendstringLabel for the optional <legend> element

Legend

Give fieldsets a descriptive legend to break your form into logical sections.

I am legend
{{
form.fieldset_start({
'legend': 'I am legend'
})
}}

{{
form.text({
'label': 'Example field',
'id': 'field-1',
'name': 'field-1'
})
}}

{{
form.fieldset_end()
}}