Difference between revisions of "Email form field type"

From Joomla! Documentation

(new document)
 
(Marked for translation)
Line 1: Line 1:
provides an input field for an email address.
+
<noinclude><languages /></noinclude>
 +
<translate>Provides an input field for an email address.</translate>
  
* '''name''' (mandatory) is the unique name of the parameter.
+
<translate>* '''name''' (mandatory) is the unique name of the parameter.</translate>
* '''type''' (mandatory) must be ''email''.
+
<translate>* '''type''' (mandatory) must be ''email''.</translate>
* '''label''' (mandatory) (translatable) is the descriptive title of the field.
+
<translate>* '''label''' (mandatory) (translatable) is the descriptive title of the field.</translate>
* '''description''' description text for the form field.
+
<translate>* '''description''' description text for the form field.</translate>
* '''size''' (optional) determines the size of the field on the screen.
+
<translate>* '''size''' (optional) determines the size of the field on the screen.</translate>
* '''required''' (optional) "true" to enforce a value.
+
<translate>* '''required''' (optional) "true" to enforce a value.</translate>
* '''class''' (optional) for styling.
+
<translate>* '''class''' (optional) for styling.</translate>
* '''validate''' (optional) makes sure it is an emailaddress.
+
<translate>* '''validate''' (optional) makes sure it is an emailaddress.</translate>
  
Example XML Definition
+
<translate>Example XML Definition:</translate>
 
<source type="xml">
 
<source type="xml">
 
<field name="email" type="email"
 
<field name="email" type="email"
Line 21: Line 22:
 
</source>
 
</source>
  
[[Category:Standard form field types]]
+
<noinclude><translate>[[Category:Standard form field types]]</translate></noinclude>

Revision as of 07:10, 14 August 2015

Other languages:
English • ‎Nederlands • ‎español • ‎français

Provides an input field for an email address.

  • name (mandatory) is the unique name of the parameter.
  • type (mandatory) must be email.
  • label (mandatory) (translatable) is the descriptive title of the field.
  • description description text for the form field.
  • size (optional) determines the size of the field on the screen.
  • required (optional) "true" to enforce a value.
  • class (optional) for styling.
  • validate (optional) makes sure it is an emailaddress.

Example XML Definition:

<field name="email" type="email"
	label="JGLOBAL_EMAIL"
	description="COM_ADMIN_USER_FIELD_EMAIL_DESC"
	required="true"
	size="30"
	class="inputbox"
	validate="email" />