Difference between revisions of "XML JForm form definitions"

From Joomla! Documentation

(Added information)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Joomla! 1.6 {{JVer|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]].
+
<noinclude><languages /></noinclude>
 +
{{incomplete}}
 +
<translate><!--T:1-->
 +
Joomla! {{JVer|2.5}} and newer supply the [[S:MyLanguage/JForm|JForm]] class to conveniently and flexibly create forms with a large amount of form fields. [[S:MyLanguage/JForm|JForm]] can create forms from XML form definitions. These can be standalone files or sections of other files, notably [[S:MyLanguage/manifest files|manifest files]].</translate>
  
== Syntax ==
+
<translate>== Syntax == <!--T:2--></translate>
  
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. The optional <code>name</code> attribute can be used on the <code><fieldset></code> to define the name of the fieldset, as in <code><fieldset name="params"></code>.
+
<translate><!--T:3-->
 +
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. The optional <code>name</code> attribute can be used on the <code><fieldset></code> to define the name of the fieldset, as in <code><fieldset name="params"></code>.</translate>
  
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>
+
<translate><!--T:4-->
 +
Each fieldset must contain one or more <code><field></code> elements, each representing a single [[S:MyLanguage/form field|form field]] with a label. See [[S:MyLanguage/Standard form field types|Standard form field types]] for a list of allowed form field types and example XML form field definitions.</translate>
  
 +
<noinclude>
 +
<translate>
 +
<!--T:5-->
 
[[Category:JForm forms]]
 
[[Category:JForm forms]]
 
[[Category:Specifications]]
 
[[Category:Specifications]]
 +
</translate>
 +
</noinclude>

Latest revision as of 08:41, 22 October 2018

Other languages:
Deutsch • ‎English • ‎Nederlands • ‎español • ‎français • ‎português do Brasil • ‎العربية • ‎বাংলা
Quill icon.png
Content is Incomplete

This article or section is incomplete, which means it may be lacking information. You are welcome to assist in its completion by editing it as well. If this article or section has not been edited in several days, please consider helping complete the content.
This article was last edited by Franz.wohlkoenig (talk| contribs) 5 years ago. (Purge)

Joomla! Joomla 2.5 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. The optional name attribute can be used on the <fieldset> to define the name of the fieldset, as in <fieldset name="params">.

Each fieldset must contain one 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.