Textarea Field

Function : Displays a multi line textarea in the form

Parameters

Label The label of this element
CSS Class CSS class assigned to this element
Style using CSS only Defines whether or not JForms should append inline CSS attributes to the element, Set to “YES” if you want to disable inline CSS attributes
Required Whether or not this field is required , the Form will not be submitted until this field is filled
Minimum length Minimum number of characters required
Maximum lengthMaximum number of characters allowed
Size mode Whether to set the size of the textarea using Rows/Cols or Pixels
Columns Number of columns “Available only if Size mode = Columns and Rows”
Rows Number of rows “Available only if Size mode = Columns and Rows”

Note:

  • Any HTML tags are stripped from input

Example

To create a required textarea that allows a minimum length of 10 characters and a maximum length of 50 character , with 50 columns width and 2 rows height

  • Set “Required” : Yes
  • Set “Minimum length” : 10
  • Set “Maximum length” : 50
  • Set “Size mode length” : Columns and Rows
  • Set “Columns” : 50
  • Set “Rows” : 2
 
0.7/elements/textarea.txt · Last modified: 2009/09/06 19:14 by dr_drsh
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki