Difference between revisions of "User form field type"
From Joomla! Documentation
(Add in class option) |
|||
Line 6: | Line 6: | ||
* '''label''' (mandatory) (translatable) is the descriptive title of the field. | * '''label''' (mandatory) (translatable) is the descriptive title of the field. | ||
* '''description''' (optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box. | * '''description''' (optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box. | ||
+ | * '''class''' (optional) is a CSS class name for the HTML form field. | ||
+ | |||
Example XML parameter definition: | Example XML parameter definition: |
Revision as of 20:33, 31 January 2013
This article is a stub and needs to be expanded. If you can provide information or finish this article you're welcome to do so. Please remove this message afterwards or replace with {{inuse}} while making major edits. - Thank you. |
The user form field type provides a modal select box of users.
- type (mandatory) must be user.
- name (mandatory) is the unique name of the field. This must match the name of the query results column that contains the values that will be shown to the user in the drop-down list, unless a different name is specified in the value_field attribute.
- label (mandatory) (translatable) is the descriptive title of the field.
- description (optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.
- class (optional) is a CSS class name for the HTML form field.
Example XML parameter definition:
<field name="title" type="user" label="Select a user" />