\SimpleXMLElement $element The SimpleXMLElement object representing the `<field>` tag for the form field object.
mixed$value The form field value to validate.
string$group The field name group control value. This acts as as an array container for the field.
For example if the field has name="foo" and the group value is set to "bar" then the
full field name would end up being "bar[foo]".
The description text for the form field. Usually used in tooltips.
Since
1.7.0
protected string
$hint
The hint text for the form field used to display hint inside the field.
Since
3.2
protected mixed
$autocomplete
The autocomplete state for the form field. If 'off' element will not be automatically
completed by browser.
Since
3.2
protected bool
$spellcheck
The spellcheck state for the form field.
Since
3.2
protected bool
$autofocus
The autofocus request for the form field. If true element will be automatically
focused on document load.
Since
3.2
protected \SimpleXMLElement
$element
The SimpleXMLElement object of the `` XML element that describes the form field.
Since
1.7.0
protected \Joomla\CMS\Form\Form
$form
The Form object of the form attached to the form field.
Since
1.7.0
protected string
$formControl
The form control prefix for field names from the Form object attached to the form field.
Since
1.7.0
protected bool
$hidden
The hidden state for the form field.
Since
1.7.0
protected bool
$hiddenLabel
Should the label be hidden when rendering the form field? This may be useful if you have the
label rendering in a legend in your form field itself for radio buttons in a fieldset etc.
Since
4.0.0
protected bool
$hiddenDescription
Should the description be hidden when rendering the form field? This may be useful if you have the
description rendering in your form field itself for e.g. note fields.
Since
4.0.0
protected bool
$inlineHelp
Should the description be hidden/shown with toggle button when rendering the form field?
Since
4.1.4
protected bool
$translateLabel
True to translate the field label string.
Since
1.7.0
protected bool
$translateDescription
True to translate the field description string.
Since
1.7.0
protected bool
$translateHint
True to translate the field hint string.
Since
3.2
protected string
$id
The document id for the form field.
Since
1.7.0
protected string
$input
The input for the form field.
Since
1.7.0
protected string
$label
The label for the form field.
Since
1.7.0
protected bool
$multiple
The multiple state for the form field. If true then multiple values are allowed for the
field. Most often used for list field types.
Since
1.7.0
public mixed
$repeat
Allows extensions to create repeat elements
Since
3.2
protected string
$pattern
The pattern (Reg Ex) of value of the form field.
Since
1.7.0
protected string
$validationtext
The validation text of invalid value of the form field.
Since
4.0.0
protected string
$name
The name of the form field.
Since
1.7.0
protected string
$fieldname
The name of the field.
Since
1.7.0
protected string
$group
The group of the field.
Since
1.7.0
protected bool
$required
The required state for the form field. If true then there must be a value for the field to
be considered valid.
Since
1.7.0
protected bool
$disabled
The disabled state for the form field. If true then the field will be disabled and user can't
interact with the field.
Since
3.2
protected bool
$readonly
The readonly state for the form field. If true then the field will be readonly.
Since
3.2
protected string
$type
The form field type.
Since
1.7.0
protected string
$validate
The validation method for the form field. This value will determine which method is used
to validate the value for a field.
Since
1.7.0
protected mixed
$value
The value of the form field.
Since
1.7.0
protected mixed
$default
The default value of the form field.
Since
1.7.0
protected int
$size
The size of the form field.
Since
3.2
protected mixed
$class
The class of the form field
Since
3.2
protected mixed
$labelclass
The label's CSS class of the form field
Since
1.7.0
protected string
$onchange
The javascript onchange of the form field.
Since
3.2
protected string
$onclick
The javascript onclick of the form field.
Since
3.2
protected string
$showon
The conditions to show/hide the field.
Since
3.7.0
protected string
$parentclass
The parent class of the field
Since
4.0.0
protected static int
$count
The count value for generated name field
Since
1.7.0
protected static string
$generated_fieldname
The string used for generated fields names
Since
1.7.0
protected string
$layout
Name of the layout being used to render the field
Since
3.5
protected string
$renderLayout
Layout to render the form field
protected string
$renderLabelLayout
Layout to render the label
protected array
$dataAttributes
The data-attribute name and values of the form field.