Joomla email Form Field Type
The email form field type provides a text box for entry of an email address. The Email field extends Text field type.
XML Definition
<field name="myemail"
type="email"
label="JGLOBAL_EMAIL"
required="true"
validate="email" />
Examples
1. Email To Field (com_contact)
<field
name="email_to"
type="email"
label="JGLOBAL_EMAIL"
description="COM_CONTACT_FIELD_INFORMATION_EMAIL_DESC"
size="30" />
2. Email Field (com_users)
<field
name="email"
type="email"
label="JGLOBAL_EMAIL"
description="COM_USERS_USER_FIELD_EMAIL_DESC"
required="true"
size="30"
validate="email"
validDomains="com_users.domains" />
3. From Email Field (Global Configuration)
<field
name="mailfrom"
type="email"
label="COM_CONFIG_FIELD_MAIL_FROM_EMAIL_LABEL"
description="COM_CONFIG_FIELD_MAIL_FROM_EMAIL_DESC"
filter="string"
size="30"
validate="email"
showon="mailonline:1" />