Combo form field type

From Joomla! Documentation

Revision as of 16:58, 14 May 2019 by Wilsonge (talk | contribs) (Fix syntax error and add highlighting)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Other languages:
English • ‎Nederlands • ‎español • ‎français

Provides a combobox field, which offers a list like the List Form Field Type, but additionally allows free text.

  • name (mandatory) is the unique name of the parameter.
  • type (mandatory) must be combo.
  • label (mandatory) (translatable) is the descriptive title of the field.
  • description (optional) (translatable) tooltip for the form field.
  • class (optional) specify your own classes for additonal markup, defaults to "combobox".
  • readonly (optional) set to "true", meaning not editable, defaults to false.
  • disabled (optional) set to "true", meaning not enabled, defaults to false.
  • size (optional) sets the input size of the field.
  • required (optional) sets whether input is required, defaults to no input required.
<field name="myeditbox" type="combo" label="MyEditBox" description="myeditbox_Desc" size="7">
  <option value="1">Option 1</option>
  <option value="2">Option 2</option>
</field>