# Form:Fields

To be used within the [form:create](/tags/form-create.md#rendering-fields) tag when rendering fields.


## Example
This tag can recursively loop over the `fields` array context provided within the [form:create](/tags/form-create.md#rendering-fields) tag pair.

::tabs

::tab antlers
```antlers
{{ form:fields }}
    {{ if is_informative }}
        {{ field }}
    {{ else }}
        <div class="p-2">
            <label>{{ display }}</label>
            <div class="p-1">{{ field }}</div>
            {{ if error }}
                <p class="text-gray-500">{{ error }}</p>
            {{ /if }}
        </div>
    {{ /if }}
{{ /form:fields }}
```
::tab blade
```blade
<s:form:fields>
    @if ($field['is_informative'])
        {{ $field['field'] }}
    @else
        <div class="p-2">
            <label>{{ $field['display'] }}</label>
            <div class="p-1">{{ $field['field'] }}</div>
            @if ($field['error'])
                <p class="text-gray-500">{{ $field['error'] }}</p>
            @endif
        </div>
    @endif
</s:form:fields>
```
::

Informative fields — like headings, banners, and paragraphs — don't collect any data, so they have no label or error of their own. The `is_informative` variable lets you render just their `field` markup and skip the surrounding label/error wrapper.

:::tip
Learn more about which [fields array variables](/tags/form-create.md#fields-array-variables) are available to this fields loop!
:::
