# Form field

> The values of `data-required`.

Status: Ready (Smootify 2.0)  
URL: https://www.smootify.io/docs/astro/reference/attributes/form-field  
Updated: 2026-10-21

## Where it can go

- **Anywhere** on the page.

## Values

| Attribute and value | What it is | Notes |
|---|---|---|
| `data-required="True"` | Required (component prop) | In any form of the page (a Smootify form or a plain form): the field is required, as with `required`. The native `required` already works, since nothing drops it: `data-required` is only for a field whose requirement a component prop of the site writes as text (`True` or empty: required; `False`: not). A field with `hidden` (or inside one) is not required while hidden, as with `required`. There is no `form-field` element: the attribute goes on the field; on input |
