Date Field

Function : Allows the user to specify a date

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
Start year The year from which to start counts
Span The number of years to display in the list
Specify Span A custom Span if the provided spans are not enough “for example the user might want to specify 2 or 3 years span”, This option is only available if “Span = Other”

Supported segments

  • day
  • month
  • year

Example

To create a date element that starts from 1999 and ends at 2010

  • Set “Start year” = 1999
  • Set “Span” = Other
  • Set “Specify Span” = 11
 
0.7/elements/date.txt · Last modified: 2009/09/21 04:04 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