2.0 Beta

Smootify 2.0 is in public beta. Your 1.x store keeps working. Move when you want.

What changed

Form field

The values of `data-required`.

v2.0 beta
Open .md
On this page
  1. Where it can go
  2. Values

Where it can go

  • Anywhere on the page.

Values

Attribute and valueWhat it isNotes
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

    ↑ ↓ to moveEnter to openEsc to close