.. include:: /Includes.rst.txt
.. _field_type_email:
=====
Email
=====
The "Email" type generates an `` field, specified for entry of email
addresses only.
This type adds a server-side validation of an email address. If the input does
not contain a valid email address, a flash message warning will be displayed.
It corresponds with the TCA `type='input'` (default) and `eval='email'`.
Properties
==========
.. rst-class:: dl-parameters
autocomplete
:sep:`|` :aspect:`Required:` false
:sep:`|` :aspect:`Type:` boolean
:sep:`|` :aspect:`Default:` 'false'
:sep:`|`
If set, the autocomplete feature is enabled for this field.
default
:sep:`|` :aspect:`Required:` false
:sep:`|` :aspect:`Type:` string
:sep:`|` :aspect:`Default:` ''
:sep:`|`
Default value set if a new record is created.
placeholder
:sep:`|` :aspect:`Required:` false
:sep:`|` :aspect:`Type:` string
:sep:`|` :aspect:`Default:` ''
:sep:`|`
Placeholder text for the field.
size
:sep:`|` :aspect:`Required:` false
:sep:`|` :aspect:`Type:` integer
:sep:`|` :aspect:`Default:` '20'
:sep:`|`
Abstract value for the width of the `` field.
required
:sep:`|` :aspect:`Required:` false
:sep:`|` :aspect:`Type:` boolean
:sep:`|` :aspect:`Default:` 'false'
:sep:`|`
If set, the field will become mandatory.
trim
:sep:`|` :aspect:`Required:` false
:sep:`|` :aspect:`Type:` boolean
:sep:`|` :aspect:`Default:` 'false'
:sep:`|`
If set, the PHP trim function is applied on the field's content.