Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

XForms Group Element

Introduction

The group element is used as a container for defining a hierarchy of form controls. Groups can be nested to create complex hierarchies.

Attributes

  • Single-Node Binding

Type restrictions

The group element can be bound to a node containing data of any type. Actually, the group element doesn't interact with the data in the bound node. However, having a relevant model item property on the bound node has an effect on a group. All content elements (e.g. core form controls, groups, switches, repeats and host language content) within a non-relevant group are handled as non-relevant. If a group is non-relevant, then the rendering approach used to signify non-relevance is applied to the entire content of the group.

Representations

The group element doesn't have visual presentation.

Example

<group ref="address">
  <label>Shipping Address</label>
  <input ref="line_1">
    <label>Address line 1</label>
  </input>
  <input ref="line_2">
    <label>Address line 2</label>
  </input>
  <input ref="postcode">
    <label>Postcode</label>
  </input>
</group>

Document Tags and Contributors

Tags: 
 Contributors to this page: Sheppy, ethertank, Surkov.alexander, Kohei, Jpacheco
 Last updated by: Sheppy,