| In Joomla! 1.5, form fields were parameters. For that version, you may want to use the corresponding Text parameter type. |
The text form field type provides a text box for data entry. If the field has a value saved, this value is displayed when the page is first loaded. If not, the default value (if any) is selected.
Example XML field definition:
<field name="mytextvalue" type="text" default="Some text" label="Enter some text" description="" size="10" />Use the integer filter to ensure that letters types get stripped when the form is processed.
<field name="myintvalue" type="text" default="8" label="Enter some text" description="Enter some description" filter="integer" />Use the raw filter to ensure that html code is preserved when the form is processed.
<field name="myhtmlvalue" type="text" default="" label="Enter some text" description="Enter some description" filter="raw" />