Difference between revisions of "XML JForm form definitions"

From Joomla! Documentation

(Created page)
 
m (Adjusted parts to include)
Line 3: Line 3:
 
== Syntax ==
 
== Syntax ==
  
The root element for JForm definitions is usually <code><config></code>. Under the root element, one or more <code><fieldset></code> elements may appear, each representing a HTML <code><fieldset></code>, a group of form fields visually grouped together. Each fieldset must contain on or more <code><field></code> elements, each representing a single [[form field]] with a label. See [[Standard form field types]] for a list of allowed form field types and example XML form field definitions.
+
The root element for JForm definitions is usually <code><config></code>. <onlyinclude>Under the <code><config></code> element, one or more <code><fieldset></code> elements may appear, each representing a HTML <code><fieldset></code>, a group of form fields visually grouped together. Each fieldset must contain on or more <code><field></code> elements, each representing a single [[form field]] with a label. See [[Standard form field types]] for a list of allowed form field types and example XML form field definitions.</onlyinclude>
  
 
[[Category:JForm forms]]
 
[[Category:JForm forms]]
 
[[Category:Specifications]]
 
[[Category:Specifications]]

Revision as of 14:21, 10 June 2011

Joomla! 1.6 Joomla 1.6 and newer supply the JForm class to conveniently and flexibly create forms with a large amount of form fields. JForm can create forms from XML form definitions. These can be standalone files or sections of other files, notably manifest files.

Syntax[edit]

The root element for JForm definitions is usually <config>. Under the <config> element, one or more <fieldset> elements may appear, each representing a HTML <fieldset>, a group of form fields visually grouped together. Each fieldset must contain on or more <field> elements, each representing a single form field with a label. See Standard form field types for a list of allowed form field types and example XML form field definitions.