Email

type => 'email' // TCA alternativeSql: true

The Email type creates an input field, which is validated against an email pattern. If the input does not contain a valid email address, a flash message warning will be displayed.

Settings

default
Required

false

Type

string

Default

''

Default value set if a new record is created.

placeholder
Required

false

Type

string

Default

''

Placeholder text for the field.

required
Required

false

Type

boolean

Default

false

If set, the field becomes mandatory.

For more advanced configuration refer to the TCA documentation.

Example

Minimal

name: example/email
fields:
  - identifier: email
    type: Email

Advanced / use case

name: example/email
fields:
  - identifier: email
    type: Email
    autocomplete: true
    default: 'developer@localhost.de'
    placeholder: 'Enter your email address'
    required: true